+ Reply to Thread
Results 1 to 2 of 2

Pivot table filter not changing data in table - Using macro

  1. #1
    Registered User
    Join Date
    02-18-2014
    Location
    Tampa
    MS-Off Ver
    Excel 2010
    Posts
    54

    Pivot table filter not changing data in table - Using macro

    Hello all,

    I have a workbook that contains about 20 pivot tables, and all but one are relatively small. I am using a macro to update the filter for "store" on each pivot table when the value is changed by a user on a dashboard sheet.

    Example: storesel cell is changed from 1 to 2...the filter section on the pivot table reflects the change but the data in the table still shows store 1.

    I should also mention that it sometimes works as it should on the large table and the smaller pivot tables always update correctly. Any suggestions on how to resolve this? Thank you all for the assistance. I'm using 2010 excel.


    Curtis

  2. #2
    Forum Guru xlnitwit's Avatar
    Join Date
    06-27-2016
    Location
    London
    MS-Off Ver
    Windows: 2010; Mac: 16.13 (O365)
    Posts
    7,085

    Re: Pivot table filter not changing data in table - Using macro

    Hi,

    Are you using the CurrentPage property to filter the pivot table? If so, you must clear the filter before you assign a new value- if you don't and you try to assign a value that does not exist for that field, you actually overwrite the existing value in the filter but not in the data.
    Don
    Please remember to mark your thread 'Solved' when appropriate.

+ 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. Changing Filter in OLAP Pivot Table with VBA
    By jaustin77 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 11-12-2014, 02:34 PM
  2. Changing Data in Pivot Table Macro
    By sherryE in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 06-09-2014, 09:29 AM
  3. [SOLVED] Pivot Table Filter - Without changing Grand Total
    By Nuno W in forum Excel Charting & Pivots
    Replies: 4
    Last Post: 01-21-2014, 06:00 AM
  4. 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
  5. Changing Pivot Table Filter via InputBox
    By 0lzi in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 09-08-2011, 04:33 AM
  6. Changing a pivot table report filter with vba
    By BigO in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 06-20-2011, 01:53 PM
  7. [SOLVED] Changing a pivot table page or data set by using a macro
    By [email protected] in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 06-15-2005, 08: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