Hold VBA execution until form closes

D

Duncs

I have a form with an OK button, which shows an error message. (I
used this rather than the MsgBox, as I wanted more control over what
is displayed.)

What I need to know is, how do I hold the execution of the VBA code
until the OK button is clicked?

TIA

Duncs
 
K

Ken Snell [MVP]

Open the "OK button" form in Dialog mode; all code stops except for the code
running in that form until that form is closed or made invisible.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top