LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 694
Default Equating page filter value to a cell drop-down value

Hi,

I think you need to use PageFields instead of PivotFields().
The following works for me. (based on active sheet) :
Sub test()
Dim Wsh as worksheet
Dim pt As PivotTable
Dim pf As PivotField

set Wsh = activesheet
Set pt = wsh.PivotTables(1)
Set pf = pt.PageFields(1)

pf.CurrentPage = Wsh.Range("B4").Value
''' or = Wsh.Parent.Worksheets("Summary").Range("B4").Value
End Sub
--
Regards,
Sébastien
<http://www.ondemandanalysis.com
 
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
How do I transfer a filter drop down box to another cell? Angela Excel Discussion (Misc queries) 2 January 5th 09 06:39 PM
How to define a drop down row filter in cell C2 for cells C3:C27 ? Claudia d'Amato Excel Discussion (Misc queries) 1 July 15th 08 08:40 PM
Forcing PT page filter values to equal my cell value on summary pa klysell Excel Programming 0 June 14th 07 05:16 PM
Theory on test equating and linking [email protected] Excel Discussion (Misc queries) 0 March 27th 07 02:00 AM
Extract filter items from Drop-Down Automatic Filter karpatov Excel Programming 1 February 26th 06 06:03 PM


All times are GMT +1. The time now is 01:14 AM.

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

About Us

"It's about Microsoft Excel"