+ Reply to Thread
Results 1 to 6 of 6

How to change pivot table fields with vba

  1. #1
    Registered User
    Join Date
    08-08-2013
    Location
    Texas
    MS-Off Ver
    Excel 2010
    Posts
    46

    Unhappy How to change pivot table fields with vba

    Hello all,


    I have been unable to change pivot fields using excel vba. Would anyone know how to clear fields and then add new ones?

    I have been unable to find a way to change using vba.

    Thanks

  2. #2
    Forum Expert
    Join Date
    05-30-2012
    Location
    The Netherlands
    MS-Off Ver
    Office 365
    Posts
    14,987

    Re: How to change pivot table fields with vba

    Why using vba for that?

    Why not just drag and drop?
    Notice my main language is not English.

    I appreciate it, if you reply on my solution.

    If you are satisfied with the solution, please mark the question solved.

    You can add reputation by clicking on the star * add reputation.

  3. #3
    Registered User
    Join Date
    08-08-2013
    Location
    Texas
    MS-Off Ver
    Excel 2010
    Posts
    46

    Re: How to change pivot table fields with vba

    Well that's because people are lazy haha. My job is to help the higher ups do nothing and make the computer do all the work.

    Also i haven't found anything to do it. So I'm also curious as I like challenges
    Last edited by martinez77; 06-04-2014 at 11:58 AM.

  4. #4
    Forum Expert
    Join Date
    05-30-2012
    Location
    The Netherlands
    MS-Off Ver
    Office 365
    Posts
    14,987

    Re: How to change pivot table fields with vba

    I don't have a solution for that kind of work.

    Maybe another forummember?

  5. #5
    Registered User
    Join Date
    08-08-2013
    Location
    Texas
    MS-Off Ver
    Excel 2010
    Posts
    46

    Re: How to change pivot table fields with vba

    Yea, I have read through three vba advanced books that can do some powerful stuff.... yet nothing on dynamically changing pivot tables. I may just create multiple tables, but I figure their has to be a way right!?

  6. #6
    Registered User
    Join Date
    06-04-2014
    Posts
    1

    Re: How to change pivot table fields with vba

    The book Writing Excel Macros by Steven Roman, O'Reilly Press, may be helpful. I have a very old version, but an updated version may work for you. May be available as a on-line book as well. There is a chapter on vba macros for pivot tables.

+ 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. [SOLVED] Change Order of Calculated Fields in Pivot Table
    By bbg22 in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 12-30-2013, 10:36 AM
  2. run time error 1004 when using macro to change pivot Table fields.
    By Craigs in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 03-21-2011, 06:19 AM
  3. Change Pivot table fields to generate chart based on button choosed
    By booo in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 09-29-2010, 03:03 PM
  4. How to Disable automatic fields in pivot table like total and count on fields
    By anushka in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 09-24-2009, 07:53 AM
  5. Replies: 1
    Last Post: 07-02-2006, 09:30 AM

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