On Thu, 27 Nov 2008 19:53:01 -0800, JLGWhiz
<(E-Mail Removed)> wrote:
>This might work"
>Sub liminal()
>Dim c As Range
>i = 31
>For Each c In Range("D31
500") 'Change Range size to suit
> c.FormatConditions.Add Type:=xlExpression, _
> Formula1:="=C" & i & "= 1"
> c.FormatConditions(1).Interior.ColorIndex = 38
> i = i + 1
>Next
>End Sub
Your exact suggestion above did not work perfectly (see below) but the
concept of doing the string substitution did work and I think I can
adjust to meet my requirements.
What didn't work:
- format in column D was controlled by value in column F rather than C
- increment on i wasn't right, row 34 controlled row 32
I have no idea on why this behavior but then I'm still a beginner.
Thanks for teaching me the concept of the string replacement though!!!
John Keith
(E-Mail Removed)