Hello everyone
I'm currently working with a range of data that I need to subtotal, but after subtotaling I need to input formulas on the subtotal lines to reference the data in the subtotaled line one row above (the data filtered out).
I'm currently using this for column A, but obviously this is running it constantly all the way down the worsksheet
Once done I need to repeat these steps for columns G, H, I, J, N and O.
Thanks in advance for the help.
I'm currently working with a range of data that I need to subtotal, but after subtotaling I need to input formulas on the subtotal lines to reference the data in the subtotaled line one row above (the data filtered out).
I'm currently using this for column A, but obviously this is running it constantly all the way down the worsksheet
Code:
Dim ws As Worksheet Set ws = ActiveSheet
For Each cell In ws.Columns(1).Cells
If IsEmpty(cell) = True Then cell.Select
ActiveCell.FormulaR1C1 = "=+R[-1]C"
Next cell
Once done I need to repeat these steps for columns G, H, I, J, N and O.
Thanks in advance for the help.