Solved

Display a message while processing in VBA Outlook 2010

Posted on 2013-12-03
5
454 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

Windows Server 2016: All you need to know

Learn about Hyper-V features that increase functionality and usability of Microsoft Windows Server 2016. Also, throughout this eBook, you’ll find some basic PowerShell examples that will help you leverage the scripts in your environments!

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Tracking Deleted Messages 3 57
SBS 20011 to Office 365 7 85
Outlook 2010: problems with certificate 26 116
Additional Mailboxes in Microsoft Outlook 2 29
Learn more about how the humble email signature can be used as more than just an electronic business card. When used correctly, a signature can easily be tailored for different purposes by different departments within an organization.
Follow this checklist to learn more about the 15 things you should never include in an email signature from personal quotes, animated gifs and out-of-date marketing content.
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…
This Experts Exchange video Micro Tutorial shows how to tell Microsoft Office that a word is NOT spelled correctly. Microsoft Office has a built-in, main dictionary that is shared by Office apps, including Excel, Outlook, PowerPoint, and Word. When …

948 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

Need Help in Real-Time?

Connect with top rated Experts

23 Experts available now in Live!

Get 1:1 Help Now