In the Workbook_Open() procedure, I set eDate to the current date. When the workbook is opened, a message box pops up showing the current date. But in the sheet1 beforedboubleclick event procedure, I have the following code
eDate = eDate - 1
msgbox(eDate)
and the message box showed -1.
What happened to the public variable eDate?
===============================
Public eDate As Date
Sub Workbook_Open()
eDate = Date
MsgBox (eDate)
End Sub
eDate = eDate - 1
msgbox(eDate)
and the message box showed -1.
What happened to the public variable eDate?
===============================
Public eDate As Date
Sub Workbook_Open()
eDate = Date
MsgBox (eDate)
End Sub