Normally when you add a total row to a listobject manually, they will accept the filter on the table.
When I add a total row by VBA:
The totals allways show grandtotal, not accepting the filter.
The formula generated by code above in the total row is like this:
=SUBTOTAL(109;[Qty])
Any advise ?
When I add a total row by VBA:
Code:
With ActiveSheet.ListObjects("Table1")
.ShowTotals = True
.ListColumns("Qty").TotalsCalculation = xlTotalsCalculationSum
.ListColumns("Amount").TotalsCalculation = xlTotalsCalculationSum
End With
The totals allways show grandtotal, not accepting the filter.
The formula generated by code above in the total row is like this:
=SUBTOTAL(109;[Qty])
Any advise ?