+ Reply to Thread
Results 1 to 10 of 10

Pivottable: move "∑ values" label between row labels and column labels through VBA

  1. #1
    Registered User
    Join Date
    12-27-2011
    Location
    -
    MS-Off Ver
    Excel 2007
    Posts
    11

    Pivottable: move "∑ values" label between row labels and column labels through VBA

    Hi there,

    If you look at the pivottable in this link:
    https://www.nothingbutsharepoint.com...le-06_1481.png

    you'll see that the "∑ values" label is in the column labels box.
    However, when I create my own pivottable through vba code, that label is placed in the row labels box.
    Is it possible to move it to the column labels with vba code?

    Thanks in advance.

  2. #2
    Registered User
    Join Date
    12-27-2011
    Location
    -
    MS-Off Ver
    Excel 2007
    Posts
    11

    Re: Pivottable: move "∑ values" label between row labels and column labels through VBA

    omg, too easy.

    The name of the label is "data". With that name you can change the pivotfield orientation between xlrowfield and xlcolumnfield.

    Simple

  3. #3
    Registered User
    Join Date
    03-01-2012
    Location
    Edmonton, Canada
    MS-Off Ver
    Excel 2007
    Posts
    7

    Re: Pivottable: move "∑ values" label between row labels and column labels through VBA

    Can anyone explain what the above post means? I'm having the exact same problem but am unable to divine the code.

    Thanks!

  4. #4
    Registered User
    Join Date
    03-01-2012
    Location
    Edmonton, Canada
    MS-Off Ver
    Excel 2007
    Posts
    7

    Re: Pivottable: move "∑ values" label between row labels and column labels through VBA

    Still desperate for the answer (spent the last hour looking); anyone have any ideas?

  5. #5
    Registered User
    Join Date
    04-09-2013
    Location
    London, England
    MS-Off Ver
    Excel 2010
    Posts
    6

    Re: Pivottable: move "∑ values" label between row labels and column labels through VBA

    I know this thread is dead but given it ranks on Google I figured it would help if people got the answer in the future:

    Please Login or Register  to view this content.
    The first response put me onto this but could have been cleaer thanks though!

    Rich

  6. #6
    Registered User
    Join Date
    03-25-2013
    Location
    Mexico
    MS-Off Ver
    2007
    Posts
    1

    Re: Pivottable: move "∑ values" label between row labels and column labels through VBA

    Great post! Thanks for the answer, I've been looking it for hours!

  7. #7
    Registered User
    Join Date
    11-13-2013
    Location
    LA
    MS-Off Ver
    Excel 2010
    Posts
    6

    Re: Pivottable: move "∑ values" label between row labels and column labels through VBA

    Rich, Thank you so much for the soution.
    I came here via from Google and had been struggled for many hours. Finally I got the solution.

    For any others may have same issue and visit this post from Google, the answer is on Rich's post.
    In order to follow the privacy rule of this website, just take few seconds to register.

    Thanks again, Rich!

  8. #8
    Registered User
    Join Date
    11-13-2013
    Location
    United States
    MS-Off Ver
    Excel 2010
    Posts
    1

    Wink Re: Pivottable: move "∑ values" label between row labels and column labels through VBA

    Quote Originally Posted by richgarrod View Post
    I know this thread is dead but given it ranks on Google I figured it would help if people got the answer in the future:

    Please Login or Register  to view this content.
    The first response put me onto this but could have been cleaer thanks though!

    Rich

    This is the perfect line I've been looking for!! Thanks!

    Please Login or Register  to view this content.

  9. #9
    Registered User
    Join Date
    05-16-2016
    Location
    China
    MS-Off Ver
    2013
    Posts
    1

    Re: Pivottable: move "∑ values" label between row labels and column labels through VBA

    Thank you so much for the solution.

  10. #10
    Registered User
    Join Date
    09-14-2018
    Location
    London, England
    MS-Off Ver
    2013
    Posts
    1

    Re: Pivottable: move "∑ values" label between row labels and column labels through VBA

    thanks for this. v helpful

+ 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