Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Junior Member
 
Location: India
Posts: 24
Send a message via Skype™ to Gaura215
Default Pivot Items Filter using VBA

Hello

I have a code which make a Pivot using VBA. however there is a condition that I am unable to fulfilled in that pivot using my VBA.

I will try to write it here the code I wish for.

ActiveSheet.PivotTables("PivotTable2").PivotFields _ ("ReportTimeframe") .CurrentPage = "(All)"
With ActiveSheet.PivotTables("PivotTable2").PivotFields ("Report Timeframe")
.PivotItems.Last Month.Visible = True
.PivotItems.All Other Months.Visible = False

End With

I want a fix in my underline codes above.

Any help in this would be appreciable.
__________________
Regards
Gaurav
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
selected Pivot Table filter items James[_44_] Excel Programming 0 December 31st 10 03:07 AM
pivot table - drop down filter box has 10% of items out of order davidsokay Excel Discussion (Misc queries) 3 June 30th 09 02:48 PM
Are Date filters available for items in the Filter area of pivot t SHW Excel Discussion (Misc queries) 2 November 27th 08 01:56 AM
Filter Items from a Pivot Field Allen Excel Programming 2 November 26th 08 05:43 PM
How to filter field button items in pivot tables ajholloway Charts and Charting in Excel 4 October 11th 08 02:27 PM


All times are GMT +1. The time now is 09:44 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"