Conditional Formatting in Macro

S

shantanu oak

I want to use conditional formatting in a macro in such a way that the
entire row will be colored in Red instead of the single cell that
contains the specific word. Please guide.
 
R

robert111

I would start by recording a macro that colours a complete row red. Then
I would edit the macro, adding a line at the beginning something like:

if cells(1,1) > 500 then 10 else 20

line 10 is the start of the code that colours the row red, line 20 is
END
 
B

Bob Phillips

Why, you can do that in CF Excel by selecting the whole row and use a
formula of

=$C$1=value



--
HTH

Bob Phillips

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

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