LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 788
Default Find the Format of a cell

I have a spreadsheet that allows the user to input mostly numeric values but
once in a while will enter a Text value. I run conditional code to do
something if the numeric value falls into a certain range. I need to check
the format of the cell before I apply the condition to make sure it is
numeric.

How do I check the cells format prior to apply the code. Here is what I
tried but kept getting an object required error

For CellNum = 10 To 22
If (["C" & "CellNum"].NumberFormat) = False Then
GoTo SkipCell
Else...

Thanks for all of your help.

-Chris

 
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
How to find a cell with a particular date format? Tom Excel Discussion (Misc queries) 3 December 18th 09 06:08 AM
Find/Replace changes cell format ?????? Woland99 Excel Discussion (Misc queries) 2 January 23rd 08 10:07 AM
Find partial cell format icq_giggles Excel Discussion (Misc queries) 7 July 21st 07 12:02 AM
find word in a cell then change cell format [email protected] Excel Programming 2 May 23rd 05 01:21 PM
macro to find date format in a cell and delete that entire row vikram Excel Programming 8 April 30th 04 06:00 PM


All times are GMT +1. The time now is 11:02 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"