Display a message while processing in VBA Outlook 2010

We have a VBA in Outlook 2010 that does various loops searching.  One loop in particular takes 1 or 2 minutes to go thru.  We want display a message to the user while is running the loops so they know that there is something going on.

We created the form and gave it the message but it doesn't display or halts.
rayluvsAsked:
Who is Participating?
 
GrahamSkanConnect With a Mentor RetiredCommented:
You can call a UserForm with some text in a label and display it, so:
UserForm1.Show vbModeless
'do your processing
UserForm1.Hide

Open in new window

0
 
rayluvsAuthor Commented:
Yes of course, forgot vbModeless.  It workes but it blinks away super fast and can't display the message properly (can't be read).

Any suggestion to maintain the form displayed and readable?
0
 
GrahamSkanRetiredCommented:
I suspect that something in your macro might be changing the active window.

Firstly I would try adjusting the use of DoEvents in your code.
0
 
rayluvsAuthor Commented:
You are correct, the windows was within the loop.  Took it out and it works!

Thanx!!
0
 
rayluvsAuthor Commented:
Thanx!
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.