Results 1 to 7 of 7

subtotal for many columns

Threaded View

  1. #1
    Registered User
    Join Date
    03-16-2013
    Location
    Denmark
    MS-Off Ver
    Excel 2003
    Posts
    4

    subtotal for many columns

    Hi everyone,

    I have a table with 3400 columns, and i need to subtotal my database. If I use the subtotal function, I would have to select all the 3400 columns manually. However, also the VBA code that I found should contains the numbers from 2 until 3400 under the TotalList...

    Sub Test()
        Range("A1").CurrentRegion.Subtotal GroupBy:=1, Function:=xlSum, TotalList:=Array(2, 3, 4, 5, 6, ), _
            Replace:=True, PageBreaks:=False, SummaryBelowData:=True
    End Sub
    Somebody has any idea? The number of rows in the subtotal are not the same for each subtotal

    Many thanks!
    Last edited by Chimborasso; 10-22-2015 at 03:42 PM.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. [SOLVED] Subtotal help for dynamic columns!
    By HerryMarkowitz in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 08-31-2015, 04:05 AM
  2. Subtotal / Count Over Many Columns
    By uberathlete in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 04-13-2014, 02:38 PM
  3. [SOLVED] Subtotal on mulitple columns with VBA
    By Ironman in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 03-03-2014, 11:03 AM
  4. Subtotal - Delete zero Subtotal and prior rows that calculate to that zero Subtotal
    By Whatsherface in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 05-14-2012, 08:37 PM
  5. Subtotal for many columns
    By cube00 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 07-28-2008, 03:47 PM
  6. Subtotal multiple columns
    By jbilby@valornet.com in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 08-21-2006, 03:30 PM
  7. [SOLVED] Subtotal by two columns at once
    By Katherine in forum Excel General
    Replies: 1
    Last Post: 01-20-2005, 05:06 PM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1