+ Reply to Thread
Results 1 to 4 of 4

Runtime Error on Grouping code

  1. #1
    Registered User
    Join Date
    12-13-2012
    Location
    Mountains, USA
    MS-Off Ver
    Excel 2010
    Posts
    3

    Runtime Error on Grouping code

    I am working on a project in Excel 2010 that requires me to group values in a generated pivot table. Ultimately, I plan to create a loop that will filter the pivot, dynamically group the results, copy the final table to a new sheet, and then repeat for each item in page filter. I have 99% of the rest of the code figured out, but the section that groups the data keeps kicking out a runtime error. Because the data I am working with is senstive, I have created a hypothetical file and the code is still giving me the runtime error in this simplified file. I feel like it has to be something simple, but I can't find it. Any help is greatly appreciated.

    Please Login or Register  to view this content.
    Attached Files Attached Files

  2. #2
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,420

    Re: Runtime Error on Grouping code

    TableGen is Sheet13 not Sheet1. Once that is fixed the code runs and groups the values.

    HTML Code: 

    Regards, TMS
    Trevor Shuttleworth - Retired Excel/VBA Consultant

    I dream of a better world where chickens can cross the road without having their motives questioned

    'Being unapologetic means never having to say you're sorry' John Cooper Clarke


  3. #3
    Registered User
    Join Date
    12-13-2012
    Location
    Mountains, USA
    MS-Off Ver
    Excel 2010
    Posts
    3

    Re: Runtime Error on Grouping code

    Quote Originally Posted by TMShucks View Post
    TableGen is Sheet13 not Sheet1. Once that is fixed the code runs and groups the values.

    Regards, TMS
    Perfect, I knew it was something simple. Another lesson learned.

    D

  4. #4
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,420

    Re: Runtime Error on Grouping code

    You're welcome. Thanks for the rep.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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