Self-Closing message box using VB

  • Thread starter Thread starter George Lob
  • Start date Start date
G

George Lob

Does anyone know how to create a self-closing message box. I have created a
vb script in Outlook that moves emails from the inbox to appropriate folders
(rules wizard is too limited). I would like to show at various times what
has been moved and then close the window.

Any help would be appreciated.

PS - Yes, I have searched and found only one routine, but the code has to be
pre-compiled for it to work and I do not have VB.
 
If you want to do something like a status dialog with progress indicators,
you're best bet is to write a VBA macro with UserForms or a compiled COM
Add-In. VBScript would not be a good choice for this unfortunately.

Eric Legault - B.A, MCP, MCSD, Outlook MVP
 
How would I accomplish this using a VBA macro with UserForms? My apology,
for I did create a VBA macro and not a VBScript.
 
Just design a UserForm in the VBA project with whatever controls you desire
to display progress (Labels, ProgessBar control, etc.). Load the form where
appropriate before the bulk of your code:

Dim myForm As New frmMain 'actually name of form in project

myForm.Show
RunThisProcedure 'call control properties of myForm from there; you may
have to declare myForm with a higher scope

You'd also need to add 'Unload myForm' at the end of RunThisProcedure.
 
Back
Top