Public Function blHasThisBeenDone() As Boolean
Dim nmDone As Name
On Error Resume Next
Set nmDone = ThisWorkbook.Names("RunDate")
On Error GoTo 0
If nmDone Is Nothing Then
ThisWorkbook.Names.Add "RunDate", Date, True '\\Change True to False if you want to hide name from user
Else
If CDate(Date) = CDate(Replace(nmDone.Value, "=", "")) Then
blHasThisBeenDone = True
Else
ThisWorkbook.Names.Add "RunDate", Date, True '\\Change True to False if you want to hide name from user
End If
End If
End Function