Excel prank that makes a pop-up window display randomly after the user selects a cell.
This works such that the user could select 20 different cells with nothing happening or after 5 cell selections, the pop-up could appear.
Also, the macro works in the SelectionChange event; if you already have code in that event, then just copy/paste the above code without the lines that begin with Sub and End Sub; however, you still need the line that begins with Public to go at the top fo the code window.
The only way to stop this prank is to remove the code from the workbook or disable macros; that said, this macro only serves as a minor inconvenience.