UnsolvedCoding
Technical User
This formula has ceased to work for some reason:
Test is a variable that holds the total number of rows with information below the header row.
B is the starting row for the loop - in this case 5.
C is the column which is 44 for this instance.
Sheets("Info").Cells(B, C + 1).Formula = _
"=COUNTIF(S5:T" & 5 + TEST & "=AR" & B & ")"
In other words this can be read as Sheets("Info").Cells(5, 45).Formula = "=COUNTIF(S5:T" & 5 + 9 & "=AR" & 5 & ")"
Test is a variable that holds the total number of rows with information below the header row.
B is the starting row for the loop - in this case 5.
C is the column which is 44 for this instance.
Sheets("Info").Cells(B, C + 1).Formula = _
"=COUNTIF(S5:T" & 5 + TEST & "=AR" & B & ")"
In other words this can be read as Sheets("Info").Cells(5, 45).Formula = "=COUNTIF(S5:T" & 5 + 9 & "=AR" & 5 & ")"