ExcelNoob222
Board Regular
- Joined
- Jun 17, 2020
- Messages
- 77
- Office Version
- 365
- Platform
- Windows
Hi,
When I do this manually using the subtotal menu under data I get only one grand total. However when I use the below VBA it adds two grand totals:
Any suggestions? Thanks.
When I do this manually using the subtotal menu under data I get only one grand total. However when I use the below VBA it adds two grand totals:
VBA Code:
Selection.Subtotal GroupBy:=3, Function:=xlSum, TotalList:=Array(8, 11), _
Replace:=False, PageBreaks:=False, SummaryBelowData:=True
Selection.Subtotal GroupBy:=5, Function:=xlSum, TotalList:=Array(8, 11), _
Replace:=False, PageBreaks:=False, SummaryBelowData:=True
Range("A1").Select
Any suggestions? Thanks.