Checking Cell Value for a Date

  • Thread starter Thread starter Bishop
  • Start date Start date
Use VB's IsDate function. For example...

If IsDate(Range("A1").Value) Then
' A1 contains something VB can interpret as a date
Else
' The contents of A1 does not look like a date to VB
End If
 
Any cell with an integer value between 0 and 2958465 can, with proper
formatting, represent a date.
 
Back
Top