Conditional Formatting in VBA

SiGill

Registered User.
Local time
Today, 08:47
Joined
Dec 22, 2008
Messages
72
I have this code which isn't working. Could someone give me some pointers?

.Application.Cells.Select
.Application.Selection.FormatConditions.Delete
.Application.Selection.FormatConditions.Add Type:=xlCellValue, Operator:=xlEqual, Formula1:="549"
.Application.Selection.FormatConditions(1).Interior.ColorIndex = 3

I am trying to get access to tell excel that any cell that has 549 in it colour red.
 

Users who are viewing this thread

Back
Top Bottom