Hello I am having some issues with the following Macro only in the Mac Version of Excel for some reason. When i use the Macro in a windows version of Excel the macro works just fine. Does any one have any ideas that might help out with thi issue? Here is a copy of the file and the error that I'm getting.
If you have any question about the situation please let me know.
Justin-
Code:
Sub Auto_Open()
ExpirationCode
End Sub
Sub ExpirationCode()
Dim ExpirationDate As Date
ExpirationDate = DateSerial(2014, 11, 18)
If Now() >= ExpirationDate Then
MsgBox "Trial Period ended on " + CStr(ExpirationDate) + "."
ThisWorkbook.Close savechanges:=False
End If
End Sub
Justin-
Attachments
Last edited by a moderator: