Lingering Message Boxes

S

Steve C

After clicking OK in a user form, I have a message box pop up telling the
user what step to do next. When they click OK to that, one more message box
pops up to remind them of other details. However, the first one lingers on
the screen in the background while the second one overlays it. Can I
programmatically tell the first message box to hide/close after the user
clicks OK on it? Thanks!
 
J

Jonathan West

Steve C said:
After clicking OK in a user form, I have a message box pop up telling the
user what step to do next. When they click OK to that, one more message
box
pops up to remind them of other details. However, the first one lingers
on
the screen in the background while the second one overlays it. Can I
programmatically tell the first message box to hide/close after the user
clicks OK on it? Thanks!

Include a couple of DoEvents commands between the two MsgBox commands. This
has the effect of giving Windows a chance to process the message queue and
actually get rid of the message box from the screen
 

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