The equivalent of isnumber in VBA is IsNumeric()
Not exactly.Code:The equivalent of isnumber in VBA is IsNumeric()
IsNumeric("123") returns True.
VarType(Range("A1").Value2) = vbDouble will tell you if a cell contains a number.
VarType(Range("A1").Value) = vbDate will tell you if it contains a number formatted as a date.
If isnumeric(Range("A5").DataSeries) Then