I am using Excel 2002 and have a field that upon the workbook opening populates cell F7 with the following:
The user of the workbook can override this value, but I want to verify that the format is the same as above, a string and as mmyyyy
I tried playing around with
however, though the value in the field is in the correct format and is a string the message I created in case the value is not correct keeps poping up. I have no idea what I am doing wrong OR perhaps I do not understand how this event works OR both.
Code:
wsMainMenu.Range("F7").Value = CStr(Format(Now(), "'mmyyyy"))
The user of the workbook can override this value, but I want to verify that the format is the same as above, a string and as mmyyyy
I tried playing around with
Code:
Worksheet_SelectionChange(ByVal Target As Range)