Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 54
Default #NUM checking

Hi All,
I wrote a sub procedure that runs on a column(using 'offset') of
data(Numbers calculated out of a formula) and checks a validity of them. in
one cell of that column i recieve a "#NUM" error.
How can i relate to that in my code? How can i check it and skip any entry
that returns any kind of "#nnn" error?
Thanks a lot.....
Lp12
Im using Excel2003.
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,163
Default #NUM checking

You can use the IsError function to check the the cell value: Assuming you
have the value of the cell in the VBA variable CellVal you could do something
like this:

If IsError(CellVal)
' put in code here to handle the error - ignore the value or replace it
with something
Else
' your existing code would go here
End If


"Lp12" wrote:

Hi All,
I wrote a sub procedure that runs on a column(using 'offset') of
data(Numbers calculated out of a formula) and checks a validity of them. in
one cell of that column i recieve a "#NUM" error.
How can i relate to that in my code? How can i check it and skip any entry
that returns any kind of "#nnn" error?
Thanks a lot.....
Lp12
Im using Excel2003.

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
Spell Checking with checking cell notes jfitzpat Excel Discussion (Misc queries) 0 August 8th 07 10:26 PM
Checking and IF ? mohamadhafiz Excel Worksheet Functions 5 June 26th 07 11:04 PM
Day Checking K1KKKA Excel Discussion (Misc queries) 4 January 30th 07 08:19 PM
Checking Hyperlink [email protected] Excel Discussion (Misc queries) 0 August 15th 06 08:59 PM
Add checking Pat Excel Worksheet Functions 5 December 17th 04 08:25 PM


All times are GMT +1. The time now is 01:15 AM.

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

About Us

"It's about Microsoft Excel"