I am using code to highlight a cell if the vlook returns a value of Teddy I. Here is the code I tested
[vba]With Range("B2", Range("B2").End(xlDown).Offset(-1, 0))
With .FormatConditions.Add Type:=xlExpression, _
Formula1:="=if(VLOOKUP(RC[1], _
'[BusinessReportingReference.xls]Products'!C1:C9,9,FALSE)=Teddy I)"
.Font.Bold = True
.Font.ColorIndex = 3
.Interior.ColorIndex = 8
End With
End With[/vba]
However it keeps giving me an error on the with .formatconditions line
Edited 13-Mar-07 by geekgirlau. Reason: insert line breaks