conditional format: looking for formated

G

Guest

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
 
G

Guest

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?
 
T

Tom Ogilvy

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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top