A
Atreides
Hi,
I am trying to set up a reminder box to pop-up via excel. This is currently
working using OnTime. However, it only pops-up in Excel. I'd like to make it
appear on top of all my windows so I can see it (otherwise it's not a very
good reminder is it?) Any help on this?
Also, how can I get the timer to start once I open the workbook? The
Workbook_Open() command doesn't seem to do it.
My code so far is below.
Thanks
Atreides
Public RunWhen As Double
Public Const cRunIntervalSeconds = 1800
Public Const cRunWhat = "The_Sub"
Private Sub Workbook_Open()
StartTimer
End Sub
Sub StartTimer()
RunWhen = Now + TimeSerial(0, 0, cRunIntervalSeconds)
Application.OnTime earliesttime:=RunWhen, procedure:=cRunWhat, _
schedule:=True
End Sub
Sub The_Sub()
MsgBox "Fill in timesheet"
StartTimer
End Sub
I am trying to set up a reminder box to pop-up via excel. This is currently
working using OnTime. However, it only pops-up in Excel. I'd like to make it
appear on top of all my windows so I can see it (otherwise it's not a very
good reminder is it?) Any help on this?
Also, how can I get the timer to start once I open the workbook? The
Workbook_Open() command doesn't seem to do it.
My code so far is below.
Thanks
Atreides
Public RunWhen As Double
Public Const cRunIntervalSeconds = 1800
Public Const cRunWhat = "The_Sub"
Private Sub Workbook_Open()
StartTimer
End Sub
Sub StartTimer()
RunWhen = Now + TimeSerial(0, 0, cRunIntervalSeconds)
Application.OnTime earliesttime:=RunWhen, procedure:=cRunWhat, _
schedule:=True
End Sub
Sub The_Sub()
MsgBox "Fill in timesheet"
StartTimer
End Sub