Conditional Formating

  • Thread starter Thread starter GMet
  • Start date Start date
G

GMet

How can I programmatically set conditional formating on
selected cells?

TIA
GMet
 
One way:

With Selection.FormatConditions
.Delete
.Add Type:=xlCellValue, _
Operator:=xlBetween, _
Formula1:="1", _
Formula2:="100"
.Item(1).Interior.ColorIndex = 3
End With
 

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