Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How can I run a function periodically in a visual basic form

Status
Not open for further replies.

ii128

Programmer
May 18, 2001
129
US

How can I run a function periodically in a visual basic form without open and run the form?
 
Sub DoSomethingWhenToldTo()
Application.OnTime earliesttime:=TimeValue("23:58:00"), procedure:="macronamegoeshere"
End Sub


then possibly in your macro turn off events?

Application.EnableEvents=False

I never tried it.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top