I am trying to make a macro that allows me to use variables to alter cell references to apply a formula across how ever many cells I require. Here is what I have:
    Sub actuals()
'
' actuals Macro
'
Dim counter As Integer
For counter = 0 To 4
'
    `ActiveCell.FormulaR1C1 = _
        "=(IF('EAC with Labor Forecast OY1'!R[-7-counter]C[64+(5*counter)]=""No"",'EAC with Labor Forecast OY1'!R[25-counter]C[67+(5*counter)],'EAC with Labor Forecast OY1'!R[25-counter]C[64+(5*counter)])+IF('EAC with Labor Forecast OY1'!R[40-counter]C[64+(5*counter)]=""No"",'EAC with Labor Forecast OY1'!R[73-counter]C[67+(5*counter)],'EAC with Labor Forecast OY1'!R[73-conuter]C[64+(5*counter)]))"
    ActiveCell.Select`
    Selection.Offset(1, 0).Select
    Next counter
End Sub
I get an error that I assume is related to my use of the counter variable. Any help?
 
    