Good morning,
Having a slight problem making excel copy a formula from F2 to FinalRow and keep getting global failure. Code I have so far.
Please can you help me with this conundrum.
Columns("F:F").Select
Selection.Insert Shift:=xlToRight, CopyOrigin:=xlFormatFromLeftOrAbove
Range("F1").Select
ActiveCell.FormulaR1C1 = "AVG"
Range("F2").Select
ActiveCell.FormulaR1C1 = "=RC[-1]/RC[-2]" (NOT SURE IF THIS IS PROBLEM)
Selection.NumberFormat = "0.00"
Selection.AutoFill Destination:=Range("F2:F" & FinalRow), Type:=xlFillDefault
Range("F2:F").Select
Having a slight problem making excel copy a formula from F2 to FinalRow and keep getting global failure. Code I have so far.
Please can you help me with this conundrum.
Columns("F:F").Select
Selection.Insert Shift:=xlToRight, CopyOrigin:=xlFormatFromLeftOrAbove
Range("F1").Select
ActiveCell.FormulaR1C1 = "AVG"
Range("F2").Select
ActiveCell.FormulaR1C1 = "=RC[-1]/RC[-2]" (NOT SURE IF THIS IS PROBLEM)
Selection.NumberFormat = "0.00"
Selection.AutoFill Destination:=Range("F2:F" & FinalRow), Type:=xlFillDefault
Range("F2:F").Select