I'm trying to automatically run this so after it finishes copying Sheet "Corp" to a new sheet, it will change the R[-2] to R[-3], then copy/paste "Corp", change to R[-4], etc etc. The final run should be R[-1465].
VBA Code:
Sub Macro1()
'
' Macro1 Macro
'
'
ActiveCell.FormulaR1C1 = "=ABS(CD_4[@N2]-R[-2]C[-8])"
Range("L1468").Select
Selection.AutoFill Destination:=Range("L2:L1468"), Type:=xlFillDefault
Range("L2:L1468").Select
Sheets("Corp").Select
Cells.Select
Selection.Copy
Sheets.Add After:=ActiveSheet
Selection.PasteSpecial Paste:=xlPasteFormulasAndNumberFormats, Operation:= _
xlNone, SkipBlanks:=False, Transpose:=False
End Sub