Hey I'm stuck on this for loop with RC formatting.
Probably easy?
Dim x As Integer
x = 7
For x = 7 To 379
' This next part the range M x+2 works fine but when I put the x into formula it doesn't work, tried with & and "" but not fully sure on how to write it.
Range("M" & x + 2).Select
ActiveCell.FormulaR1C1 = _
"=IF(RC[-5]<R[-x]C[1],""BELOW"",IF(RC[-5]>R[-x]C[2],""ABOVE"",""OK""))"
Next x
Cheers in advance
ajkingy
Probably easy?
Dim x As Integer
x = 7
For x = 7 To 379
' This next part the range M x+2 works fine but when I put the x into formula it doesn't work, tried with & and "" but not fully sure on how to write it.
Range("M" & x + 2).Select
ActiveCell.FormulaR1C1 = _
"=IF(RC[-5]<R[-x]C[1],""BELOW"",IF(RC[-5]>R[-x]C[2],""ABOVE"",""OK""))"
Next x
Cheers in advance
ajkingy