+ Reply to Thread
Results 1 to 4 of 4

Pivot table refresh - VBA Code

  1. #1
    Registered User
    Join Date
    11-09-2012
    Location
    Bangalore
    MS-Off Ver
    Excel 2007
    Posts
    16

    Pivot table refresh - VBA Code

    Dear friends,
    I have a pivot table and what i need is everytime when the new data is added, the pivot table to should get refreshed with all the filter selected (including blanks) in every filter.
    Currently the issue is, whenever i add a new data (fruits / dealer / stage / Total quantity) the item in the pivot filter which is comes after Blanks doesnt get selected.

    Attached the spreadsheet for your help.

    Thanks in advance
    Attached Files Attached Files

  2. #2
    Forum Contributor
    Join Date
    11-11-2012
    Location
    Muscat, Oman
    MS-Off Ver
    Office 365
    Posts
    521

    Re: Pivot table refresh - VBA Code

    Hello Ravi, I am not too sure if this will work for you but still try the following
    Go to your datasheet highlight the last row that has data and insert a new row above the last row of Pivot Table Data. Enter the values in this new row go back to your Pivot table and refresh i think you will get to see what you want to see.
    Let me know if thats what you wanted.
    Thanks/VKS

  3. #3
    Registered User
    Join Date
    11-09-2012
    Location
    Bangalore
    MS-Off Ver
    Excel 2007
    Posts
    16

    Re: Pivot table refresh - VBA Code

    Hello VKS,
    Thanks for your suggestion but the data sheet is again automated to pick the data from different sheets, so it keeps adding below the last line in the summary. :-)
    Doesnt work for me.

  4. #4
    Administrator 6StringJazzer's Avatar
    Join Date
    01-27-2010
    Location
    Tysons Corner, VA, USA
    MS-Off Ver
    MS 365 Family 64-bit 2404
    Posts
    24,866

    Re: Pivot table refresh - VBA Code

    Your title asked for a VBA solution so here is VBA that will refresh and then include all values in the filters. This is specific to the file you posted.
    Please Login or Register  to view this content.
    Jeff
    | | |會 |會 |會 |會 | |:| | |會 |會
    Read the rules
    Use code tags to [code]enclose your code![/code]

+ 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