+ Reply to Thread
Results 1 to 3 of 3

VBA Pivot Table Filter Macro

  1. #1
    Registered User
    Join Date
    05-16-2010
    Location
    London
    MS-Off Ver
    Excel 2003
    Posts
    17

    VBA Pivot Table Filter Macro

    Hello Everyone,
    I have a pivot table that is updated every week and extended by the previous weeks data. The pivot table contains campaigns by country. I want to filter the campaigns for each country separately (and then copy it to another sheet). More precisely i need the data for the last week (therefore count-1).
    But my filter parts creates some trouble. That´s what I tried:

    Please Login or Register  to view this content.
    calendar week is set as pivot table filter (above the table)

    can anyone help me on this issue? would be very appreciated

  2. #2
    Registered User
    Join Date
    05-16-2010
    Location
    London
    MS-Off Ver
    Excel 2003
    Posts
    17

    Re: VBA Pivot Table Filter Macro

    sry forget to tell you that. the Debugger points out the - .PivotItems(i).Visible=False - in my for loop!

  3. #3
    Registered User
    Join Date
    05-16-2010
    Location
    London
    MS-Off Ver
    Excel 2003
    Posts
    17

    Re: VBA Pivot Table Filter Macro

    Hello guys, just found my mistake. missed the .field! before the .PivotItems...

+ 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