Determining the data type.
You should be able to construct your own code built around the code concepts
in this macro...
Sub WhatIsIt()
With ActiveCell
If IsDate(.Value) Then
MsgBox "It's a date!"
ElseIf WorksheetFunction.IsNumber(.Value) Then
MsgBox "Excel thinks you have a number of some sort."
Else
MsgBox "It looks like text to me."
End If
End With
End Sub
--
Rick (MVP - Excel)
"satadru" wrote in message
...
Dear All,
Without using the "Format -- Cells -- Number" option, is it possible to
determine the data type / format of a particular cell or a range of cells?
I am trying to look for a formula or a piece of code which could possibly
help me out in this.
Many thanks in advance.
|