Hello,
I'm able to step through this code using F8, however, when running the sub-routine by pressing F5, it chokes on the last line: I can't figure out what the error is: My data starts in F8 and goes down to rows 62...I want the subtotal of that list for rows from the bottom of list. Thank you for any insight!
Dim Total As Long
Dim lastrow As Long
Dim firstrow As Long
Dim ws As Worksheet
Set ws = ActiveWorkbook.Worksheets(1)
ws.Activate
'Total Market Values and Percentages
Total = Range("F8").End(xlDown).Row
Range("F" & Total).Offset(4).FormulaR1C1 = "=sum(r8c:r[-4]c)"
I'm able to step through this code using F8, however, when running the sub-routine by pressing F5, it chokes on the last line: I can't figure out what the error is: My data starts in F8 and goes down to rows 62...I want the subtotal of that list for rows from the bottom of list. Thank you for any insight!
Dim Total As Long
Dim lastrow As Long
Dim firstrow As Long
Dim ws As Worksheet
Set ws = ActiveWorkbook.Worksheets(1)
ws.Activate
'Total Market Values and Percentages
Total = Range("F8").End(xlDown).Row
Range("F" & Total).Offset(4).FormulaR1C1 = "=sum(r8c:r[-4]c)"