id like help with the below
my code is going to the end of a column, then in the row below is summing the data within the column. I want to drag that formula across the remaining active columns. with out having to rewrite the code for each column manually.
its my last line of code i am struggling with
Dim LR As Long
LR = Range("M" & Rows.Count).End(xlUp).Row
Range("M" & LR + 1).Formula = "=SUM(m7:M" & LR & ")"
Range("M" & LR + 1).Font.Bold = True
**Selection.AutoFill Destination:=Range("M" & LR + 1, lastcolumn), Type:=xlFillDefault**