PC Review


Reply
Thread Tools Rate Thread

Automatically Update a Pivot Table Field Used as Column / Row

 
 
RDiva
Guest
Posts: n/a
 
      12th Apr 2010
I have written code which updates several pivot table page fields using a
list. Is there a way to also update a pivot table field when it's used in a
pivot table as a column/row? I tried the code below, however, I get an error
stating that the 'Object doesn't support this property or method'. The only
other option I could think of was to create a second field in the data sheet
which would contain the same data then use this new field as a page field in
the pivot table but I would like to know if there is a way to do this using
VBA.

Sheets("Pivot Tables").Select

ActiveSheet.PivotTables("PivotTable2").PivotItems("Product
Line").CurrentPage = Sheets("Sales").Range("E3").Value
ActiveSheet.PivotTables("PivotTable2").PivotItems("Region").CurrentPage =
Sheets("Sales").Range("B3").Value

--
RDiva
 
Reply With Quote
 
 
 
 
Herbert Seidenberg
Guest
Posts: n/a
 
      13th Apr 2010
Excel 2007 PivotTable
Update multiple PTs, multiple sheets.
Row/Column/Page Fields.
With Multiple Items in Page Field(s)
Matches selections of one chosen PT to all.
http://c0718892.cdn.cloudfiles.racks.../04_12_10.xlsm
Pdf preview (2 pgs):
http://www.mediafire.com/file/gmdgdnizmoo/04_12_10.pdf
 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
automatically update the pivot table eva cheng Microsoft Excel Misc 1 25th May 2010 08:30 AM
Automatically update pivot table when switching to sheet that thepivot table is in billshat44@yahoo.com Microsoft Excel Discussion 4 8th Jul 2009 11:04 PM
Automatically Hide Pivot Table Field List Box =?Utf-8?B?UkI=?= Microsoft Excel Misc 1 28th May 2007 12:21 PM
Pivot Table - how to display PT Row field in column to right of ta =?Utf-8?B?RGVubmlz?= Microsoft Excel Misc 3 25th Feb 2006 09:10 PM
Pivot Table update automatically? =?Utf-8?B?c2hpdGFsIHNoYWg=?= Microsoft Excel Programming 1 26th Feb 2005 09:31 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 09:32 PM.