home | get Sue’s code | forums | share code | registration

More Outlook Resource Sites

Microsoft Developer Network (MSDN)

FAQs and other general resources

Login

login
password
Remember me

You will need to register and log in if you want to download the source code for the Microsoft Outlook Programming book. The forums and code sharing areas are open to both registered and non-registered visitors.

forum 09-Feb-2010 09:24

Looking for help with Outlook programming projects — VSTO, add-ins, VBA, custom Outlook forms, etc.? You′ve come to the right place!

NEW! >> Subscribe to this site via RSS. For more RSS options, see the complete list of feeds on our main news page.

 

    Page [ 1 ]  
 Code Essentials Printer Friendly Version
Beginner’s section on how to work in the VBA environment, how to work with functions and expressions – generally not specific to Outlook
Topic
How can I create a progressbar in outlook?
I'm trying to create a progressbar. I have some vba code in a module and I want to start a progress bar when I run the vba macro. I have a loop in my module and would like to send status to the progess bar while looping. I would really appreciate the help.

Thanks,
Rich K.

  28-Oct-2003  15:16
  28-Oct-2003  16:21   
If you have VB, it includes a Progress Bar control. If no, I usually just use an image control with a nice background color and change the width in increments as the loop completes.
  28-Oct-2003  18:21   
I tried a userform. During the sub I set userform1.show and at the end of the sub I set userform1.hide. But the userform1.show takes the over and stops the running of the sub. How do I show the form, continue running the sub and update it from the sub.
Do I need to use doevents somehow?

Thanks,
Rich K.
  28-Oct-2003  20:41   
Make sure you're not showing the userform1 modal. You need to invoke DoEvents every time you update the control on the userform and also userform1.Repaint.
  30-Oct-2003  12:30   
There's also code for a Progress Bar in the Sample Applications in the Samples folder of the Office Developer CD, if you have access to that.
    Page [ 1 ]  
Post a new message to this topic.



name        email