I have a Formula
CRange = "B" & CStr(Offset + 1)
IRange = "C" & CStr(j)
ActiveSheet.Range(CRange).Select
'Sheets("Iteration Details").Select
value = CStr(-1 - CInt(Offset) + 3)
Value1 = CStr("R[" & value & "]C")
Dim r As Range
Set r = Range(Value1)
ActiveCell.FormulaR1C1 = _
"=IF(ISTEXT(r),(SUM(COUNTIFS('Test Case Iteration Details'!C1,'Iteration Details'!R3C,'Test Case Iteration Details'!Range(IRange),""Pass""))),"""")"
I want to increase the value of ISTEXT which is R[-1]C to R[-2]C next time the loop runs also the value of IRANGE to C4 from C3 every time the loop runs. But the Formula is not working though it is working Fine if I hard code the variables . Can you please help me out on how to proceed?