Results 1 to 5 of 5

VBA filter columns of pivot table.

Threaded View

countryfan_nt VBA filter columns of pivot... 01-02-2017, 03:06 AM
zbor Re: VBA filter columns of... 01-02-2017, 05:26 AM
NeedForExcel Re: VBA filter columns of... 01-02-2017, 05:31 AM
countryfan_nt Re: VBA filter columns of... 01-02-2017, 06:16 AM
NeedForExcel Re: VBA filter columns of... 01-02-2017, 07:20 AM
  1. #1
    Forum Contributor
    Join Date
    06-24-2004
    MS-Off Ver
    Excel 2013 Pro Plus
    Posts
    122

    VBA filter columns of pivot table.

    Hello friends! Hope 2017 is good to you all!

    I have the following code; it filters the column and shows the results of Sep-16. I am also trying to display the column “Oct-16”.

    But, Oct-16 is not appearing. Please help and thanks a lot in advance!

    Sub FilterPivotTable()
    Application.ScreenUpdating = False
    ActiveSheet.PivotTables("test").ManualUpdate = True
    
    ActiveSheet.PivotTables("test").PivotFields("months").ClearAllFilters
    
    ActiveSheet.PivotTables("test").PivotFields("months").PivotFilters. _
    Add Type:=xlCaptionEquals, Value1:="Sep-16", Value2:="Oct-16"
    
    
    
    ActiveSheet.PivotTables("test").ManualUpdate = False
    Application.ScreenUpdating = True
    End Sub
    Last edited by zbor; 01-02-2017 at 05:27 AM.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Print Button that removes columns before printing from custom pivot table filter
    By TheWhiteJamal in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 12-30-2015, 11:14 AM
  2. VBA filter date in multiple pivot table columns
    By kahnailee in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 07-20-2015, 10:35 AM
  3. Replies: 6
    Last Post: 07-31-2014, 12:56 PM
  4. Replies: 2
    Last Post: 07-30-2014, 05:50 AM
  5. Unwanted filter columns display in Pivot Table created by VBA
    By apo in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 06-06-2013, 05:47 AM
  6. Pivot table, assigning a cell wo be change the Pivot table filter
    By jwongsf in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 09-28-2012, 05:00 PM
  7. Change Pivot table Filter Based on Cell Value *Multiple Filter items* Possible?
    By Flydd in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 03-27-2012, 06:57 AM

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