LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5
Default PivotTable Field Selection

Hi,
I have a pivot table with three fields located in
the "page" area. When I open the workbook and select the
worksheet with the pivottable, all three fields default
to "(All)". I'd like to write some code that after
updating the pivottable, also selects one of the specific
options behind one of the fields so the reader doesn't
have to each time. I know how to refresh the pivot
programmatically. I tried recording the actions of
selecting a value from one of these fields and using this
code in my macro but it gives an error. Below is the
recorded macro code.

ActiveSheet.PivotTables("PivotTable1").PivotFields ("COPQ
Ind").CurrentPage = "1"

Thanks much,

Reney Langlois
 
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
Cannot Group that Selection error in PivotTable CherylS Excel Discussion (Misc queries) 1 June 16th 08 10:40 PM
Using a field name in an IF function for a calculated field in a PivotTable Joel P Excel Worksheet Functions 0 March 29th 07 12:48 AM
PivotTable - PivotTable Field name is not valid - error! miker1999[_17_] Excel Programming 1 June 10th 04 10:30 AM
PivotTable selection SC Excel Programming 1 January 8th 04 10:21 PM
PivotTable selection Skip[_3_] Excel Programming 0 January 7th 04 08:46 PM


All times are GMT +1. The time now is 11:58 PM.

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"