Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3,355
Default Checking activecell value for NA

I have this IF then statement:

If ActiveCell.text = "RED" Or ActiveCell.text = "GREEN" Or ActiveCell.text =
"YELLOW" Or ActiveCell.text = "DONE" Then

....
END IF

What do I need to add to have it work if the activecell value is N/A?

Thanks,
Barb Reinhardt
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 35,218
Default Checking activecell value for NA

if activecell.text = "#N/A"



Barb Reinhardt wrote:

I have this IF then statement:

If ActiveCell.text = "RED" Or ActiveCell.text = "GREEN" Or ActiveCell.text =
"YELLOW" Or ActiveCell.text = "DONE" Then

...
END IF

What do I need to add to have it work if the activecell value is N/A?

Thanks,
Barb Reinhardt


--

Dave Peterson
  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 10,593
Default Checking activecell value for NA

If application.isna(activecell.Value) Then

--
HTH

Bob Phillips

(replace somewhere in email address with gmail if mailing direct)

"Barb Reinhardt" wrote in message
...
I have this IF then statement:

If ActiveCell.text = "RED" Or ActiveCell.text = "GREEN" Or ActiveCell.text

=
"YELLOW" Or ActiveCell.text = "DONE" Then

...
END IF

What do I need to add to have it work if the activecell value is N/A?

Thanks,
Barb Reinhardt



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
If activecell.column = variable then activecell,offset (0,1) Battykoda via OfficeKB.com Excel Discussion (Misc queries) 1 October 2nd 07 08:05 PM
Spell Checking with checking cell notes jfitzpat Excel Discussion (Misc queries) 0 August 8th 07 10:26 PM
if activecell is value רוזנט Excel Programming 4 July 11th 06 08:19 PM
IF ACTIVECELL contains FIRSTROUNDKO via OfficeKB.com Excel Programming 4 May 3rd 06 05:17 PM
Name the ActiveCell Vikxcel Excel Programming 1 October 19th 05 01:37 AM


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