+ Reply to Thread
Results 1 to 4 of 4

Creating two pivot tables on same sheet - Optimize recorded macro code

Hybrid View

johnny_tc Creating two pivot tables on... 09-03-2012, 12:55 AM
HaHoBe Re: Creating two pivot tables... 09-05-2012, 11:35 AM
johnny_tc Re: Creating two pivot tables... 09-06-2012, 03:33 AM
HaHoBe Re: Creating two pivot tables... 09-07-2012, 11:59 AM
  1. #1
    Registered User
    Join Date
    07-09-2012
    Location
    Hyderabad
    MS-Off Ver
    Excel 2010
    Posts
    8

    Re: Creating two pivot tables on same sheet - Optimize recorded macro code

    Thanks a lot Holger. I will have a look at this code and will let you know of the progress.

    Meanwhile there is one more issue that I'm facing.
    While trying to insert the second pivot table, it is automatically taking the Grand Totals at the bottom.
    Is there any way to avoid this while inserting the second pivot???

  2. #2
    Forum Guru HaHoBe's Avatar
    Join Date
    02-19-2005
    Location
    Hamburg, Germany
    MS-Off Ver
    work: 2016 on Win10 (notebook), private: 365 on Win11 (desktop), 2019 on Win11 (notebook)
    Posts
    8,198

    Re: Creating two pivot tables on same sheet - Optimize recorded macro code

    Hi, johnny_tc,

    first of all the sheetname should be altered to "'Raw Data'" instead of "Raw Data".

    Second: if you know the name of the PT as you have passed it in (like in the example):

        With ActiveSheet.PivotTables(cstrPT_One)
            .ColumnGrand = False
            .RowGrand = False
        End With
    Ciao,
    Holger

+ Reply to Thread

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