Results 1 to 3 of 3

Adding subtot code for month info and grand total for all months when row no varies by sht

Threaded View

  1. #1
    Registered User
    Join Date
    04-25-2013
    Location
    Arizona
    MS-Off Ver
    Excel 2010
    Posts
    9

    Adding subtot code for month info and grand total for all months when row no varies by sht

    I am fairly new to the forum and want to thank all in advance for help - this is a great service. Here is my problem:

    My debugger highlights in yellow the following code (obviously indicating a probelm when trying to create subtotals from a sheet that has variable row length:

    'adds subtotals to data sorted above
    NumberOfRows = Range("A65536").End(xlUp).Row
    Range("AD1:BA" & NumberOfRows).Select
       Selection.Subtotal GroupBy:=2, Function:=xlSum, TotalList:=Array(24), _
            Replace:=True, PageBreaks:=False, SummaryBelowData:=True
    Starting at "Selection: everything is yellow and the program stops. Anything obvious you can see?
    Thanks again...in advance
    Last edited by arlu1201; 05-20-2013 at 02:17 AM.

Thread Information

Users Browsing this Thread

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

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