I read the ozgrid article that everyone keeps citing, and I just can't seem to get it to work.
For a test, I wrote this:
Sub AutoRunTest()
Application.OnTime TimeValue("14:35:00"), "MyMacro"
End Sub
Sub MyMacro()
Workbooks("AutoRun Macro Test").Sheets(1).Range("D5") = Now()
End Sub
I tried writing the time in different formats (military, standard).. Just can't seem to figure out what I'm missing here..
can anyone help? Thanks!
For a test, I wrote this:
Sub AutoRunTest()
Application.OnTime TimeValue("14:35:00"), "MyMacro"
End Sub
Sub MyMacro()
Workbooks("AutoRun Macro Test").Sheets(1).Range("D5") = Now()
End Sub
I tried writing the time in different formats (military, standard).. Just can't seem to figure out what I'm missing here..
can anyone help? Thanks!