I'd like to start a macro asking the user to put the cursor where they want to insert a table and then have the code wait while they do that, i.e only proceed after the user has clicked something to confirm it is OK to carry on, can that be done?
Ken
allow user to change the insertion point
-
- Panoramic Lounger
- Posts: 8263
- Joined: 25 Jan 2010, 09:09
- Location: retirement
-
- Administrator
- Posts: 78894
- Joined: 16 Jan 2010, 00:14
- Status: Microsoft MVP
- Location: Wageningen, The Netherlands
Re: allow user to change the insertion point
You cannot do that in a macro itself, you need a userform.
1) Use a macro to open a userform whose ShowModal property has been set to False.
2) The userform should contain a label with instructions for the user to place the insertion point, and a command button whose On Click event procedure executes the rest of the code (or calls a second macro that performs the required steps)
1) Use a macro to open a userform whose ShowModal property has been set to False.
2) The userform should contain a label with instructions for the user to place the insertion point, and a command button whose On Click event procedure executes the rest of the code (or calls a second macro that performs the required steps)
Best wishes,
Hans
Hans
-
- Panoramic Lounger
- Posts: 8263
- Joined: 25 Jan 2010, 09:09
- Location: retirement
Re: allow user to change the insertion point
Ah, OK, I see now.
Ta!
Ken
Ta!
Ken