Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 500
  • Last Modified:

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.
0
rayluvs
Asked:
rayluvs
  • 3
  • 2
1 Solution
 
GrahamSkanRetiredCommented:
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

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

  • 3
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now