#1   Report Post  
Posted to microsoft.public.excel.programming
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...



Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
ISNUMBER Arceedee Excel Discussion (Misc queries) 2 January 14th 09 05:09 AM
ISNUMBER johnrb7865 Excel Programming 7 July 15th 08 11:39 PM
ISNUMBER Tanya Excel Worksheet Functions 5 December 6th 07 04:45 PM
ISNumber VBA trickdos[_9_] Excel Programming 7 July 23rd 04 10:37 PM
ISNUMBER Brady Snow Excel Programming 5 February 26th 04 05:39 AM


All times are GMT +1. The time now is 10:00 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"