Solved

Display a message while processing in VBA Outlook 2010

Posted on 2013-12-03
5
462 Views
Last Modified: 2013-12-05
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
Comment
Question by:rayluvs
  • 3
  • 2
5 Comments
 
LVL 76

Accepted Solution

by:
GrahamSkan earned 500 total points
ID: 39694302
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
 

Author Comment

by:rayluvs
ID: 39694547
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
 
LVL 76

Expert Comment

by:GrahamSkan
ID: 39694913
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
 

Author Comment

by:rayluvs
ID: 39700294
You are correct, the windows was within the loop.  Took it out and it works!

Thanx!!
0
 

Author Closing Comment

by:rayluvs
ID: 39700296
Thanx!
0

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Following basic email etiquette rules will help you write a professional email and achieve a good, lasting impression with your contacts.
Read this checklist to learn more about the 15 things you should never include in an email signature.
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…
CodeTwo Sync for iCloud (http://www.codetwo.com/sync-for-icloud?sts=6554) automatically synchronizes your Outlook 2016, 2013, 2010 or 2007 folders with iCloud folders available via iCloud Control Panel. This lets you automatically sync them with…

792 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question