+ Reply to Thread
Results 1 to 2 of 2

VBA code to set pivot table row field in "next available" spot

  1. #1
    Registered User
    Join Date
    10-18-2007
    MS-Off Ver
    2010
    Posts
    90

    VBA code to set pivot table row field in "next available" spot

    Good morning!
    I have a spreadsheet with a pivot table that has the row fields and page fields controlled by macro buttons. I would like to add an additional button for one of the fields to be placed in the last row field regardless of what is currently there.

    Example: One possible row combination based on the macro buttons is to have the row fields SE, SD, SR another would be to have FC, FD, SR, SRG. Now to either of these I would like the user to have the option to add the field PG as the last row field. With the first example that would be in position 4, in the second example it would be position 5.

    Is there code that would allow me to define the position as the "last" row field?

    Please let me know if you need better definition of the issue. As always, your help is so greatly appreciated!

    N

  2. #2
    Registered User
    Join Date
    10-18-2007
    MS-Off Ver
    2010
    Posts
    90

    Figured it out!

    Good morning!
    I have figured out how to do what I need - just don't specify the position and it automatically goes to the last position!

    Please Login or Register  to view this content.
    N

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Pivot Table Formulas
    By penfold in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 05-28-2008, 11:59 AM
  2. count unique ID's from Pivot Table Field
    By jtwork in forum Excel General
    Replies: 2
    Last Post: 07-10-2007, 02:04 PM
  3. macro code to input date in pivot table
    By ghynes in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 04-03-2007, 09:19 AM
  4. Pivot Table Field Settings Help
    By mattylance in forum Excel General
    Replies: 0
    Last Post: 11-14-2006, 06:04 PM
  5. pivot table - sorting date field!!!
    By via135 in forum Excel General
    Replies: 1
    Last Post: 10-02-2006, 05:52 AM

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