If all the values in a column are text or all the values in a column are
number, then pick a cell and test it:
Sub WellWhatIsIt()
n = Cells(Rows.Count, "Z").End(xlUp).Row
v = Range("Z" & n)
If Application.WorksheetFunction.IsNumber(v) Then
MsgBox ("numbers")
Else
MsgBox ("text")
End If
End Sub
I suppose all cells data in Column D is number. If checked it contains
string(even only one cell), then it shows the message ("text")
Thanks
TLee
Ask a Question
Want to reply to this thread or ask your own question?
You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.