Solved

Display a message while processing in VBA Outlook 2010

Posted on 2013-12-03
5
476 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying 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

Many people use more than one email account and so it becomes difficult for them to manage them when they use separate accounts,  so, in this article, I have shared an easy way to add Other Mail Accounts in your Google Inbox. It helps to combine all…
This article describes how to import an Outlook PST file to Office 365 using a third party product to avoid Microsoft's Azure command line tool, saving you time.
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…

617 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