Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Excel VBA Automating Subtotals Function

Status
Not open for further replies.

specious

MIS
Jul 23, 2001
14
US
I am trying to automate the subtotals function within a preformatted worksheet (column headings are in a certain format). I tried to create a pivot table, but it required me to change the format of the column headings. Any ideas on how I can accomplish this?

Thank You.
 
You can automate the Data>Subtotal function with

[MyRange].Subtotal GroupBy:=[Column to Subtotal on (e.g. 1), Function:=xlSum, TotalList:=[Columns to Subtotal e.g. Array(2, 3, 4)], Replace:=True, PageBreaks:=False, SummaryBelowData:=True Store300

Store300@ftnetwork.com
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top