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!
--
Steve C

Re: Lingering Message Boxes by Jonathan

Jonathan
Wed Jul 23 10:24:19 PDT 2008


"Steve C" <SteveC@discussions.microsoft.com> wrote in message
news:0A06AD52-35DF-4685-889A-E4AE2251488A@microsoft.com...
> 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


--
Regards
Jonathan West - Word MVP
www.intelligentdocuments.co.uk
Please reply to the newsgroup




Re: Lingering Message Boxes by SteveC

SteveC
Wed Jul 23 13:27:00 PDT 2008

Thanks, Jonathan. I'll give that a try.
--
Steve C


"Jonathan West" wrote:

>
> "Steve C" <SteveC@discussions.microsoft.com> wrote in message
> news:0A06AD52-35DF-4685-889A-E4AE2251488A@microsoft.com...
> > 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
>
>
> --
> Regards
> Jonathan West - Word MVP
> www.intelligentdocuments.co.uk
> Please reply to the newsgroup
>
>
>
>