What is the correct way to code in VBA the below formula? I need to sum 5 columns in a row in the 6th column, and do this for a total of 7 rows.
Range("G21").Select
ActiveCell.FormulaR1C1 = "=SUM(RC[-5]:RC[-1])"
Selection.AutoFill Destination:=Range("G21:G27"), Type:=xlFillDefault