+ Reply to Thread
Results 1 to 3 of 3

Apply filter in a pivot table

  1. #1
    Registered User
    Join Date
    12-09-2009
    Location
    Mexico
    MS-Off Ver
    Excel 2007
    Posts
    18

    Apply filter in a pivot table

    When i record a pivot table in order to generate a macro i have this problem, whenever i change the data source the pivot table it reduces the range from which the pivot table its created by a few columns short, and when i tried to filter some items from a field it makes a code like this:

    .PivotFields("VendoLoc").PivotItems("x1").Visible = False

    .PivotFields("VendoLoc").PivotItems("x3").Visible = False

    .PivotFields("VendoLoc").PivotItems("x5").Visible = False

    When i really want to see only the X2 and X4 values in the pivot table, so when i change the data the items i still wanna see the X2 & X4 values but now i also got new X6 values and so on to filter, i don't know how to use this code that excel creates in order to filter only the values i wanna see,not the one i dont wan't want to see.
    Ideas to solve this 2 issues?
    Thanks in advanced.
    Last edited by luis87; 01-26-2010 at 09:14 PM. Reason: Compliance with forum rules

  2. #2
    Forum Expert royUK's Avatar
    Join Date
    11-18-2003
    Location
    Derbyshire,UK
    MS-Off Ver
    Xp; 2007; 2010
    Posts
    26,200

    Re: Recorded Macro

    Your post does not comply with Rule 1 of our Forum RULES. Your post title should accurately and concisely describe your problem, not your anticipated solution. Use terms appropriate to a Google search. Poor thread titles, like Please Help, Urgent, Need Help, Formula Problem, Code Problem, and Need Advice will be addressed according to the OP's experience in the forum: If you have less than 10 posts, expect (and respond to) a request to change your thread title. If you have 10 or more posts, expect your post to be locked, so you can start a new thread with an appropriate title.
    To change a Title on your post, click EDIT then Go Advanced and change your title, if 2 days have passed ask a moderator to do it for you.
    Hope that helps.

    RoyUK
    --------
    For Excel Tips & Solutions, free examples and tutorials why not check out my web site

    Free DataBaseForm example

  3. #3
    Registered User
    Join Date
    12-09-2009
    Location
    Mexico
    MS-Off Ver
    Excel 2007
    Posts
    18

    Re: Apply filter in a pivot table

    Any thoughts on this?

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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