S
-=Sojourn=-
I have this code that I want to run once per hour, but
the g_iHour seems to keep going back to null... Any help is
appreciated! Thanks!
Peter
Dim g_iHour
Private Sub Application_NewMail()
Dim iHour
iHour = Hour(Now)
If (iHour <> g_iHour) Then
' Do stuff once per hour
g_iHour = iHour
End Sub
End Sub
the g_iHour seems to keep going back to null... Any help is
appreciated! Thanks!
Peter
Dim g_iHour
Private Sub Application_NewMail()
Dim iHour
iHour = Hour(Now)
If (iHour <> g_iHour) Then
' Do stuff once per hour
g_iHour = iHour
End Sub
End Sub