+ Reply to Thread
Results 1 to 2 of 2

Pivot Table Macro Help

  1. #1
    Registered User
    Join Date
    04-21-2011
    Location
    florida
    MS-Off Ver
    Excel 2010
    Posts
    6

    Pivot Table Macro Help

    Morning forum.
    I'm building a macro to delete all contents in the column filed of a pivot table, then add a new field in it. My goal is to get it to work off a dropdown list so the user can select what they want to view/compare (in the Column field) in the table.

    Below is what I have so far. It run's without error, but the part that deletes the contents of the column field is not working. It will add the new field (i.e. "Mgr3" ), but it's just not deleting all the fields in the column field prior to that.

    Please Login or Register  to view this content.

  2. #2
    Forum Expert judgeh59's Avatar
    Join Date
    02-07-2013
    Location
    Boise, Idaho
    MS-Off Ver
    Excel 2016
    Posts
    2,310

    Re: Pivot Table Macro Help

    one thing you might try is putting a period before the Orientation in that area....also, maybe try using .visible = False instead of orientation...just a thought...
    Ernest

    Please consider adding a * if I helped

    Nothing drives me crazy - I'm always close enough to walk....

+ 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. Macro Help Needed - Link Pivot Table Filter to Regular Table AutoFilter
    By ycx1129 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 11-11-2011, 12:54 PM
  2. Macro to create pivot table/pivot chart
    By Karina in forum Excel General
    Replies: 2
    Last Post: 10-27-2011, 10:33 PM
  3. Macro to build pivot table based on another pivot table
    By tcowen61 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 08-31-2009, 10:41 AM
  4. Macro Pivot Table vs Manual Pivot Table - different results
    By vodka in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 07-03-2008, 04:43 PM
  5. [SOLVED] Pivot table to launch Macro- preserve format under table options
    By Darin Kramer in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 08-25-2005, 02:05 PM

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