I am in need of some help with this one. I need a macro that will autosum column I, and then multiple by 5%. The tricky part is not every row has data. I am using this sheet copy/pasting data into a estimated price excel. Not every item has a predefined price, and comes up as N/A. When I use the regular autosum, it will only go from that cell up to the first n/a it finds, and i have to manually edit the formula to get to line 2. (row 1 is a header row).
in short: need code that will use the last cell in column i, and autosum up to line 2, and *.05.
the code i have so far finds the last open cell, enters ibf in column D, and "est freight" in column C. I need column I to be autosum of everything above, *5%.
here is where i need the code inserted.
lMaxRows = Cells(Rows.Count, "B").End(xlUp).Row
Range("D" & lMaxRows + 2).Select
ActiveCell = "IBF"
Range("c" & lMaxRows + 2).Select
ActiveCell = "Est Freight"
With Sheets("Quote Sheet")
With .Range("i" & .Rows.Count).End(xlUp)
.Offset(1).Formula = "=SUM(i1:i" & .Row & ")"
in short: need code that will use the last cell in column i, and autosum up to line 2, and *.05.
the code i have so far finds the last open cell, enters ibf in column D, and "est freight" in column C. I need column I to be autosum of everything above, *5%.
here is where i need the code inserted.
lMaxRows = Cells(Rows.Count, "B").End(xlUp).Row
Range("D" & lMaxRows + 2).Select
ActiveCell = "IBF"
Range("c" & lMaxRows + 2).Select
ActiveCell = "Est Freight"
With Sheets("Quote Sheet")
With .Range("i" & .Rows.Count).End(xlUp)
.Offset(1).Formula = "=SUM(i1:i" & .Row & ")"