Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 66
Default conditional format: looking for formated

I want to hide other rows that Do NOT have aconditional format.. We have a
VLOOKUP driving the conditional formating. It turns the cells RED. I want
to examine the cells in the rows and hide the rows that do not have the
conditionalformat changed to RED.

I tried but it did not pick uo the color index:
If Cells(x, i).Interior.ColorIndex = 3 then Cells(x,
i).entirerow.hidden=true


The cells.ColorIndex always come back as "-4142". If I format a cell to RED
then it will return a value of 3.

How do i pick the cells that were turned RED via conditional formatting?

OR do I have to mimic the VLOOKUP formula,(could get messy.

Thanks




  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default conditional format: looking for formated

The easiest is to check the same condition the conditional format is
checking. (which is what I assume you mean by mimic the vlookup).

Chip Pearson shows how to do this without knowing beforehand what that
condition is.
http://www.cpearson.com/excel/CFColors.htm

--
Regards,
Tom Ogilvy


"Candyman" wrote in message
...
I want to hide other rows that Do NOT have aconditional format.. We have a
VLOOKUP driving the conditional formating. It turns the cells RED. I
want
to examine the cells in the rows and hide the rows that do not have the
conditionalformat changed to RED.

I tried but it did not pick uo the color index:
If Cells(x, i).Interior.ColorIndex = 3 then Cells(x,
i).entirerow.hidden=true


The cells.ColorIndex always come back as "-4142". If I format a cell to
RED
then it will return a value of 3.

How do i pick the cells that were turned RED via conditional formatting?

OR do I have to mimic the VLOOKUP formula,(could get messy.

Thanks






  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 66
Default conditional format: looking for formated

A Lot of good stuff, but I can not get the results on the VLOOKUP conditional
formula.

There is only one condition.

I am using :


Set FC = Cells(x, i).FormatConditions(1)
Formula_1 = (FC.Formula1)
Result = Application.Evaluate(FC.Formula1)



The code works for some formaulas:
=ISNA(MATCH($A22,I:I,FALSE))

The code jams on the last line for a lookup statement that compares two
lists and highlights changed cells:
=D22 < VLOOKUP($A22,PreviousReviews,COLUMN(D22),FALSE)

Any ideas?

"Tom Ogilvy" wrote:

The easiest is to check the same condition the conditional format is
checking. (which is what I assume you mean by mimic the vlookup).

Chip Pearson shows how to do this without knowing beforehand what that
condition is.
http://www.cpearson.com/excel/CFColors.htm

--
Regards,
Tom Ogilvy


"Candyman" wrote in message
...
I want to hide other rows that Do NOT have aconditional format.. We have a
VLOOKUP driving the conditional formating. It turns the cells RED. I
want
to examine the cells in the rows and hide the rows that do not have the
conditionalformat changed to RED.

I tried but it did not pick uo the color index:
If Cells(x, i).Interior.ColorIndex = 3 then Cells(x,
i).entirerow.hidden=true


The cells.ColorIndex always come back as "-4142". If I format a cell to
RED
then it will return a value of 3.

How do i pick the cells that were turned RED via conditional formatting?

OR do I have to mimic the VLOOKUP formula,(could get messy.

Thanks







  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default conditional format: looking for formated

I suspect the problem is that you are not using absolute references in your
formula, so it probably isn't what you think it is.

Set FC = Cells(x, i).FormatConditions(1)
Formula_1 = (FC.Formula1)

msgbox Formula_1
Result = Application.Evaluate(FC.Formula1)


--
Regards,
Tom Ogilvy



"Candyman" wrote in message
...
A Lot of good stuff, but I can not get the results on the VLOOKUP
conditional
formula.

There is only one condition.

I am using :


Set FC = Cells(x, i).FormatConditions(1)
Formula_1 = (FC.Formula1)
Result = Application.Evaluate(FC.Formula1)



The code works for some formaulas:
=ISNA(MATCH($A22,I:I,FALSE))

The code jams on the last line for a lookup statement that compares two
lists and highlights changed cells:
=D22 < VLOOKUP($A22,PreviousReviews,COLUMN(D22),FALSE)

Any ideas?

"Tom Ogilvy" wrote:

The easiest is to check the same condition the conditional format is
checking. (which is what I assume you mean by mimic the vlookup).

Chip Pearson shows how to do this without knowing beforehand what that
condition is.
http://www.cpearson.com/excel/CFColors.htm

--
Regards,
Tom Ogilvy


"Candyman" wrote in message
...
I want to hide other rows that Do NOT have aconditional format.. We
have a
VLOOKUP driving the conditional formating. It turns the cells RED. I
want
to examine the cells in the rows and hide the rows that do not have the
conditionalformat changed to RED.

I tried but it did not pick uo the color index:
If Cells(x, i).Interior.ColorIndex = 3 then Cells(x,
i).entirerow.hidden=true


The cells.ColorIndex always come back as "-4142". If I format a cell
to
RED
then it will return a value of 3.

How do i pick the cells that were turned RED via conditional
formatting?

OR do I have to mimic the VLOOKUP formula,(could get messy.

Thanks









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
Counting Colored Cells that are Conditional Formated tom Excel Discussion (Misc queries) 4 May 14th 10 02:13 AM
New Conditional Format Overriding Previous Conditional Format Rene Excel Discussion (Misc queries) 3 February 27th 08 06:08 PM
Copying a format that has been conditionally formated taloma715 Excel Discussion (Misc queries) 1 January 14th 06 03:07 PM
% Formated cells randomly changing to hh:mm:ss format Michael Deathya Excel Programming 0 February 7th 05 08:46 PM
Keep format after paste from other worksheets - conditional format or EnableControl solution doesn't work No Name Excel Programming 0 May 3rd 04 12:22 PM


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