Thread: isnumber
View Single Post
  #1   Report Post  
Posted to microsoft.public.excel.programming
Rick Rothstein Rick Rothstein is offline
external usenet poster
 
Posts: 5,934
Default isnumber

Something like this should work for you...

Dim Cel as Range
......
For Each Cel In <Your Range Of Cells
If WorksheetFunction.IsNumber(Cel.Value) Then
' It's a number so do something with it
End If
Next

--
Rick (MVP - Excel)


"dstiefe" wrote in message
...
how do you use the IsNumber function in your VBA code

so I want to use VBA to loop through cells and determine if the cell is a
number

then based on that due something else...