+ Reply to Thread
Results 1 to 3 of 3

Dynamic Filter of Data Cube Pivot Table through VBA (last post isn't working)

  1. #1
    Registered User
    Join Date
    05-29-2014
    Posts
    3

    Dynamic Filter of Data Cube Pivot Table through VBA (last post isn't working)

    Hi,

    I have a pivot table referenced to OLAP Cube where I need the filter one off the filters updated to include on user defined codes on the running of a macro. This what I've got so far:

    Please Login or Register  to view this content.
    This falls over every time with a 'Application-defined or object-defined error'. If however I have the macro input the result into the sheet (i.e. Code.Cells(2, 5) = CodeID) and paste that directly into the code, then it works fine. Below is an example of that:

    Please Login or Register  to view this content.
    Any help would be greatly appreciated!
    Last edited by puddingmancan; 12-09-2015 at 04:48 AM.

  2. #2
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: Dynamic Filter of Data Cube Pivot Table through VBA (last post isn't working)

    Hello and welcome to the forum, Unfortunately your post does not comply with Rule 3 of our Forum RULES. Use code tags around code.

    Posting code between [CODE]Please [url=https://www.excelforum.com/login.php]Login or Register [/url] to view this content.[/CODE] tags makes your code much easier to read and copy for testing, it also maintains VBA formatting.

    Highlight your code and click the # icon at the top of your post window. More information about these and other tags can be found here



    (This thread should receive no further responses until this moderation request is fulfilled, as per Forum Rule 7)
    Richard Buttrey

    RIP - d. 06/10/2022

    If any of the responses have helped then please consider rating them by clicking the small star icon below the post.

  3. #3
    Registered User
    Join Date
    05-29-2014
    Posts
    3

    Re: Dynamic Filter of Data Cube Pivot Table through VBA (last post isn't working)

    Hi Richard,

    Sorry, newbie mistake! Have corrected the post now.

+ 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. Dynamic Filter of Data Cube Pivot Table through VBA
    By puddingmancan in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 04-21-2021, 01:02 PM
  2. Replies: 4
    Last Post: 01-04-2017, 04:53 AM
  3. How to filter a pivot table in vba (Dynamic)
    By fluffyvampirekitten in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 07-16-2015, 05:24 AM
  4. Filtering Date in Pivot Table data from cube
    By Achuks in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 04-29-2015, 02:04 AM
  5. Dynamic filter on pivot table?
    By Cleland in forum Excel General
    Replies: 0
    Last Post: 10-23-2014, 07:50 AM
  6. Pivot table HiddenItemList not working (OLAP Cube)
    By newbie11 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 09-24-2012, 06:38 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