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: 5
Default How to check if one of the conditions returns "true"?

I use conditional formatting to highlight cells with wrong data. I want to
write a macro to check if any conditions are met. However even if the cell
has green highlight the macro still "sees" it as white i.e. the color of the
cell if conditional formatting conditions are false.

For example if the "usual" color of the cell is white (2) and in case I
enter number "1" it becomes green (35) even if I can see that it is green,
macro does not. If I try to use the following line in macro:
If Activecell.Interior.ColorIndex=35 then goto green else goto white
I will be directed to white: not green:

So, if anyone knows how to check that the conditions have been met please,
PLEASE teach me, I need your help very much.



Thanks
 
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(test,true,false) only ever returns "true"? TagTech Excel Worksheet Functions 5 December 10th 08 03:04 PM
How to count multiple conditions that are "TRUE" PSmith Excel Discussion (Misc queries) 6 December 7th 07 08:28 PM
Check if cells contain the word "Thailand", return "TRUE" ali Excel Worksheet Functions 7 September 14th 07 09:53 AM
change "true" and "false" to "availble" and "out of stock" inthestands Excel Worksheet Functions 2 July 19th 07 07:05 PM
Count occurences of "1"/"0" (or"TRUE"/"FALSE") in a row w. conditions in the next BCB New Users to Excel 7 May 13th 06 10:02 PM


All times are GMT +1. The time now is 11:57 PM.

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"