I'm trying to write some VBA in Excel 2016 to validate entered dates in one column. I'm using a simple:
If Not IsDate(SourceSheet.Cells(r, c)) Then ...
If the value in the cell is 53/9/2013, the IsDate() function will return False, but if the value is 30/9/2013, the IsDate() function returns True, which should be wrong for dates in mm/dd/yyyy format. I'm in the USA and my Windows system date formats are set to mm/dd/yyyy.
How can I force Excel to treat 30/9/2013 as an invalid date?
IsDate()
is very forgiving: dummies.com/software/microsoft-office/excel/… – Tim Williams12/9/2013
– Tim Williams