I'm having trouble setting conditional formats with VBA.
I currently have:
With
Worksheets(OPG).Range("D8").FormatConditions.Add(xlCellValue, xlNotBetween,
"=VALUE(LEFT(C8,4))", "=VALUE(RIGHT(C8,4))")
With .Font
.ColorIndex = 3
End With
End With
This gives Subscript out of range on the first line. C8 contains 2.94-3.06
and is a range of accepable values.
Ian
---
Bookmarks