Hello,
I am writing a VBA macros and have run into an issue.
I need to be able to filter and sum specific rows. For example, on column "W" I have "CASH1" & "CASH2" and need to:
1: filter all CASH1, sum values in column "F" and paste in cell "AD1"
2. Filter all CASH2, sum values in column "F" and past in cell "AD2"
So far, I have been trying with the below without much success
Activesheet.range("w:w").autofilter field:=1, criteria1:="CASH1"
Columns("F:F").select
Range(F1048576").activate
active cell.formular1c1 = "=subtotal()"
Thanks for you help!
I am writing a VBA macros and have run into an issue.
I need to be able to filter and sum specific rows. For example, on column "W" I have "CASH1" & "CASH2" and need to:
1: filter all CASH1, sum values in column "F" and paste in cell "AD1"
2. Filter all CASH2, sum values in column "F" and past in cell "AD2"
So far, I have been trying with the below without much success
Activesheet.range("w:w").autofilter field:=1, criteria1:="CASH1"
Columns("F:F").select
Range(F1048576").activate
active cell.formular1c1 = "=subtotal()"
Thanks for you help!