More Outlook Resource Sites

Microsoft Developer Network (MSDN)

FAQs and other general resources

forum 23-Nov-2014 04:33

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.

Login Password
Remember me
Register | Send my password
    Page [ 1 ]  
 Outlook Form Design Printer Friendly Version
Designing custom Outlook forms and form regions and writing code for them
Topic
Userform as warning message box with timer
i want a this code to work who can help me

i get error on te part "Application.OnTime Now + TimeValue("00:00:05"), "killtheform""

in a large code is
MELDING.Show


Private Sub UserForm_Activate()
    Application.OnTime Now + TimeValue("00:00:05"), "killtheform"
   
End Sub

Sub killtheform()

  Unload MELDING

End Sub

thanks
 Paul
 

  24-Feb-2013  11:03
  25-Feb-2013  12:57   
There is no OnTime in Outlook.

See here for an Outlook timer http://www.outlookcode.com/threads.aspx?forumid=2&messageid=7964

See page 3 for a small revision to Public Sub TriggerTimer.
 
 
    Page [ 1 ]