A family of Microsoft spreadsheet software with tools for analyzing, charting, and communicating data.
Hi,
You have 2 problems.
- A named range doesn't have a 'Date' property. It can contain a date value but that's not the same as a property which you're trying to assign.
- The named range goes in quotes.
Try this.
Sub Workbook_Open()
Dim DateCompare As Date '=Today() on a summary page
Dim DateCompare2 As Date '=Automatically created date on a different worksheet within the workbook
If (Range("DateCompare").Value = Range("DateCompare2").Value) Then
Exit Sub
Else
MessageBox
End If
End Sub
Sub MessageBox()
Dim OutPut
OutPut = MsgBox("The Report did NOT run properly!" & Chr(10) & _
Chr(10) & _
"Please Call: John Doe at (800) ***-****" & Chr(10) & _
" Jane Doe at (800) "***_****", vbExclamation, "Report Update")
End Sub