select cells based on color

  • Thread starter Thread starter lachlanmullen
  • Start date Start date
L

lachlanmullen

is there a way to select cells in an excel spreadsheet based on thei
background color? for example, i want to change cells background colo
to gray from yellow.

any ideas?

~Lac
 
'if yellow then make it gray
Try this:

if selection.interior.colorindex=27 then
selection.interior.colorindex=16
end if


regards
mark
 

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

Back
Top