Apply conditional formatting to non-blank cells

G

Guest

I have a spreadsheet that is refreshed periodically and the data range
changes each time. I want to apply conditional formatting to non-blank cells
in columns D, F and H. So I guess I need to identify the number of rows in
the range and then loop through each cell in each of columns D, F and H and
apply the formatting.

How can I do this?

Grateful for any help.
 
G

Guest

Andy

Thanks - found a solution. There are 3 condional formats and a default thus
allowing 4 colours but if a cell is blank it has to be unformatted. Solution
involved a For..Next loop and some if statements.

Thanks
 

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