+ Reply to Thread
Results 1 to 3 of 3

OLAP Pivot Table filter with VBA macro

  1. #1
    Registered User
    Join Date
    09-25-2012
    Location
    Atlanta, GA
    MS-Off Ver
    Excel 2010
    Posts
    5

    OLAP Pivot Table filter with VBA macro

    I have a workbook containing OLAP Pivot Tables. It needs to be updated on a monthly basis, so I want to build a macro that adds the previous month to one of the filters on a table. When filtered correctly There will be a few dozen items selected in the filter for this field and 3 or 4 items unselected in the filter. The number of items (months) selected increases by one each month.

    The problem is that I keep getting error messages for everything I try. None of the Pivot Field Object Members I try seem to work...

    AddPageItem:
    Please Login or Register  to view this content.
    Visible:
    Please Login or Register  to view this content.
    PivotFilters:
    Please Login or Register  to view this content.
    All of these yield errors, usually "Application-Defined or Object-Defined error". Sometimes "Unable to get the Pivot Items property of the Pivot Field class".

    The only thing that works is VisibleItemsList:
    Please Login or Register  to view this content.
    Unfortunately, that would require me to enter all of the selected months each time. Since the list is 30+ months long and will increase by 1 every month ad infinitum that is a bit impractical.

    Why are none of the other Object Members working? I am open to any suggestion that will let me easily do what I'm trying to do...

    I appreciate your help.
    Last edited by AmateurPro; 03-25-2014 at 09:59 AM.

  2. #2
    Registered User
    Join Date
    09-25-2012
    Location
    Atlanta, GA
    MS-Off Ver
    Excel 2010
    Posts
    5

    Re: OLAP Pivot Table filter with VBA macro

    Bump Bump

  3. #3
    Registered User
    Join Date
    09-25-2012
    Location
    Atlanta, GA
    MS-Off Ver
    Excel 2010
    Posts
    5

    Re: OLAP Pivot Table filter with VBA macro

    Somebody, anybody?

+ 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. Vba For Olap Pivot Table
    By kev78 in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 01-10-2017, 12:41 AM
  2. Setting (OLAP) pivot filter from VBA
    By DavidBytheway in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 10-12-2011, 10:07 AM
  3. Excel 2007 : OLAP pivot table automatic filter
    By serverdar in forum Excel General
    Replies: 0
    Last Post: 06-03-2011, 04:30 AM
  4. OLAP Pivot Filter from array
    By Sharon in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 08-15-2006, 10:05 AM
  5. Filtering Pivot table from Olap
    By Ciupaz in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 02-24-2005, 11:08 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