Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,560
Default Update pivot table report filter using cell value

Please point a VBA beginner in the right direction:

I want the code below to update the pivot table based on the cell value in
"C5" of a worksheet named "Dates".

Can this be done by amending the last line of recorded code below?

Windows("VDN Daily.xlsm").Activate

ActiveSheet.PivotTables("PivotTable1").PivotFields ( _
"[Record Date].[Date].[Date]").ClearAllFilters

ActiveSheet.PivotTables("PivotTable1").PivotFields ( _
"[Record Date].[Date].[Date]").CurrentPageName = _
"[Record Date].[Date].&[2010-02-27T00:00:00]"

Thanks for any help.

David

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
Using VBA with Pivot Table Report Filter treesinger101 Excel Programming 0 November 19th 09 10:12 PM
Pivot Table Report Filter Sorting Travis Excel Discussion (Misc queries) 3 December 30th 08 06:20 PM
how do i elmininate old data from Report filter on pivot table? Santiago[_2_] Excel Discussion (Misc queries) 1 May 27th 08 07:17 PM
Pivot table report filter problem [email protected] Excel Discussion (Misc queries) 1 March 8th 07 08:46 PM
Dimension Update and Pivot table report Ashok Excel Discussion (Misc queries) 0 January 11th 06 08:32 PM


All times are GMT +1. The time now is 12:03 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"