jim may
Well-known Member
- Joined
- Jul 4, 2004
- Messages
- 7,486
In my ThisWorkbook:
In Standard Module:
So why does the Msgbox Show ONLY:
You opened this workbook at
Stepping thru I can see in the Standard Module that OpTime IS EMPTY
But why?
Jim
Code:
Public OpTime As Date
Private Sub Workbook_Open()
OpTime = Now()
Application.OnTime OpTime + TimeValue("0:0:05"), "MyMacro"
End Sub
In Standard Module:
Code:
Sub MyMacro()
MsgBox "You opened this workbook at " & OpTime
End Sub
So why does the Msgbox Show ONLY:
You opened this workbook at
Stepping thru I can see in the Standard Module that OpTime IS EMPTY
But why?
Jim