This code works fine when called from a macro shortcut key.
However, it won't work when called from a subroutine that originates with a UserForm control click.
Also, if I make the routine that is called from the control click as simple as this:
then the control click subroutine leaves the Selection (a single cell) "inert"; I have to click on it in order to enter into it, format it etc.
In the attached test file, it correctly sets the F2 on the first click of the control button, but not on any others. If I click the "Show Form" button again, it will then correctly set the F2 again. However, I haven't reproduced these effects in my real spreadsheet.
Any help with getting the F2 setting to work consistently from the UserForm control click would be appreciated.