+ Reply to Thread
Results 1 to 4 of 4

Columns in a pivot table show data that don't exist

  1. #1
    Registered User
    Join Date
    11-28-2011
    Location
    Barcelona
    MS-Off Ver
    Excel 2007
    Posts
    74

    Columns in a pivot table show data that don't exist

    Hello,

    I have a pivot table that I filter through VBA. The problem is that when I delete the values in the range that the pivot table uses as data source, it still shows the values in the columns dropdown (even if I refresh) and when there is data in the range, the dropdown shows data that doen't exist in such range (the column Year plan only has 2012 values but it shows the 2013 option too, and when you select it the pivot table can't show any data).

    The filter area, nevertheless, works correctly and data dissapear when I delete tha values in the data range.

    I have checked another excel file and I see that a pivot table in there works the way I wish: no data - empty dropdown in columns and rows.

    The code I use to control the pivot table is:

    Please Login or Register  to view this content.
    I would much appreciate your help.
    Last edited by RagonichaFulva; 05-15-2012 at 06:14 AM.

  2. #2
    Registered User
    Join Date
    11-28-2011
    Location
    Barcelona
    MS-Off Ver
    Excel 2007
    Posts
    74

    Re: Columns in a pivot table show data that don't exist

    It seems as if the old values stayed stored in a memory in the pivot table or something alike...

  3. #3
    Forum Guru JosephP's Avatar
    Join Date
    03-27-2012
    Location
    Ut
    MS-Off Ver
    2003/10
    Posts
    7,328

    Re: Columns in a pivot table show data that don't exist

    Yeah they do: http://www.contextures.com/xlPivot04.html
    Josie

    if at first you don't succeed try doing it the way your wife told you to

  4. #4
    Registered User
    Join Date
    11-28-2011
    Location
    Barcelona
    MS-Off Ver
    Excel 2007
    Posts
    74

    Re: Columns in a pivot table show data that don't exist

    Wow JosephP!

    That was really an awesome link!! I think I may manage to solve this with the "Programmatically Clear Old Items -- Excel 2002 or later" section.

    Thank you very much indeed!!

+ 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