|
-
Mar 9th, 2008, 07:24 PM
#1
Thread Starter
Hyperactive Member
[RESOLVED] run sub every x minutes
lets say i have a routine
private sub dostuff()
'do things
end sub
but i want it to run every 15 minutes
is there some code i can add that can do that?
-
Mar 9th, 2008, 07:42 PM
#2
Re: run sub every x minutes
try this
Private Sub Form_Load()
Timer1.Interval = 60000
Timer1.Enabled = True
End Sub
Private Sub Timer1_Timer()
Static t As Long
If (t = 0) Then
Do things here
Debug.Print Now
End If
t = (t + 1) Mod 15 '15 minutes
End Sub
Waiting for a full featured smart phone with out marrying a provider
Go Android
Go raiders 
-
Mar 9th, 2008, 10:20 PM
#3
Thread Starter
Hyperactive Member
Re: run sub every x minutes
-
Mar 10th, 2008, 08:31 AM
#4
Frenzied Member
Re: run sub every x minutes
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|