Hello All, I am using Excel 2007
I am trying to find where my last column is and then add a formula starting at "C5" and then adding this formula to all the columns
Is this possible please
LC = .Cells(1, .Columns.Count).End(xlToLeft).Column
With Range("C5" & LC)
.FormulaR1C1 = _
"=SUMIFS('MIS - Customer Invoice'!C11,'MIS - Customer Invoice'!C42,R[-2]C,'MIS - Customer Invoice'!C21,R6C2)"
.Value = .Value
End With
I am trying to find where my last column is and then add a formula starting at "C5" and then adding this formula to all the columns
Is this possible please
LC = .Cells(1, .Columns.Count).End(xlToLeft).Column
With Range("C5" & LC)
.FormulaR1C1 = _
"=SUMIFS('MIS - Customer Invoice'!C11,'MIS - Customer Invoice'!C42,R[-2]C,'MIS - Customer Invoice'!C21,R6C2)"
.Value = .Value
End With