Jun 12, 2001 #1 ii128 Programmer Joined May 18, 2001 Messages 129 Location US How can I run a function periodically in a visual basic form without open and run the form?
Jun 12, 2001 #2 ratman Technical User Joined Jun 26, 2000 Messages 143 Location US 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. Upvote 0 Downvote
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.
Jun 13, 2001 #3 IonelBurtan Programmer Joined May 25, 2001 Messages 601 Location RO You can use a Timer Object. Put it on your form and treat the timer event. s-) Blessed is he who in the name of justice and good will, shepards the week through the valley of darknees... http://home.domaindlx.com/ionelb Upvote 0 Downvote
You can use a Timer Object. Put it on your form and treat the timer event. s-) Blessed is he who in the name of justice and good will, shepards the week through the valley of darknees... http://home.domaindlx.com/ionelb