Detecting cell fill color

  • Thread starter Thread starter Tony Rice
  • Start date Start date
T

Tony Rice

Is there a function, or some VBA code that will detect
that a user has applied a fill color to a cell? I want to
reference a cell, and with a =IF function, apply a
calculation to colored cells.
 
Many thanks Mike - can't get the link to work right now -
I will try gain later

regards

Tony
 
Sub iffillcolor()
For Each c In Selection
If c.Interior.ColorIndex > 0 Then c.Value = 1
Next
End Sub
 

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