Visual Basic for Applications/The Elusive Button

Summary
'''These VBA code modules are intended for Microsoft Excel. They show how to make a button that continually escapes attempts to click it. The code needs only a user form called UserForm1, and two command buttons, CommandButton1 and CommandButton2; The code will size the controls and the form itself.'''

Code Notes

 * The MouseMove event applies to specific controls; in this case a CommandButton.  It fires whenever the mouse moves anywhere within the area of the control, and is used here to move the control before the user can select it.
 * The code proposes random direction and shift amounts, then checks to make sure that the resulting shift will stay on the form, before moving the control.  When a proposed shift is rejected, the fact that the mouse is still moving ensures that another event will still fire before a selection can be made.  Selection HAS been known to happen, perhaps when there is an unlikely number of rejected shift values; a click procedure has been included to note the fact, just in case.
 * The VBA help page for this event has an impressive set of options, as yet unexplored here.

The ThisWorkbook Module
Copy this code into the ThisWorkbook module of the project. Save the file as xlsm type. It will run whenever the file is opened.

The Userform1 Module
Copy this code into the UserForm1 module. It can be accessed by double-clicking the userform in design mode. Save the file, making sure it is xlsm type. The code is run by opening the file or by clicking the above Open event procedure in the ThisWorkbook module.

Code Modifications
Added colors and overlaps, 2 Feb 2019 Added notes to code, 2 Feb 2019