Hey all,
I have a form that I have to show Modaless (Due to needing other forms to be like this), but this particular one I would like to hold the macro until 'OK' is pressed. Is there anyway of doing this?
Thanks.
Hey all,
I have a form that I have to show Modaless (Due to needing other forms to be like this), but this particular one I would like to hold the macro until 'OK' is pressed. Is there anyway of doing this?
Thanks.
Ducks are better crispy...
Have the macro show the form then end sub
Have rest of code attached or called from the OK button
Please Read Forum Rules Before Posting
Wrap VBA code by selecting the code and clicking the # icon or Read This
How To Cross Post politely
Top Excel links for beginners to Experts
If you are pleased with a member's answer then use the Scales icon to rate it
If my reply has assisted or failed to assist you I welcome your Feedback.
You could send your macro into an endless DoEvents loop, checking to see if a certain Boolean variable had been set, and if so exit the loop. Then just use your form button to set that variable.
EDIT or do what he said ^^^^^^^^
If you find the response helpful please click the scales in the blue bar above and rate it
If you don't like the response, don't bother with the scales, they are not for you
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks