PC Review


Reply
Thread Tools Rate Thread

Creating Pivot tables dynamically from page filter values summary

 
 
=?Utf-8?B?a2x5c2VsbA==?=
Guest
Posts: n/a
 
      9th Jul 2007
Hi,

I have two adjacent columns, occuping Column C and D (range C15100), in my
summary sheet. The user selects values from a drop-down list in both columns,
with one OR the other value in a pair being selected (and the other remaining
blank).

I would like to dynamically generate pivot tables based on data from my
"PivotData" sheet, according to a pre-arranged PT format, with either the
value in Column C OR Column D forming the Pivot table page filter.
Essentially I'd like a macro to create new worksheets, each with a new pivot
table using a page filter from one or the other value of user-chosen,
drop-down values in Column C or D.

Perhaps once the user has selected values in Column C and D (e.g. for row
15, either C15 or D15 is filled with data using a data validation function),
a macro will parse these values in separate worksheets and a pivot table is
generated using this values in Columns C and D as page filters.

I already have a pivot table designed, and I know that I could turn on the
macro recorder and use this code when dynamically generating all the pivot
tables. I could then refine this recorded macro to be more efficient (i.e.
using knowledge gained from John Walkenbach's Power Programming with VBA
book). I just need the VBA code that will do the parsing of these values.

What would be my best route to solve this problem?

Thanks in advance,

--
Kent Lysell
Financial Consultant
Ottawa, Ontario
W: 613.948-9557
 
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
How can I link pivot tables on Page Filter? (NOT VBA LITERATE) WJB Microsoft Excel Misc 2 29th Jul 2009 09:10 PM
(repost) Dynamically creating pivot tables from page-field list =?Utf-8?B?a2x5c2VsbA==?= Microsoft Excel Programming 9 10th Jul 2007 06:32 PM
Forcing PT page filter values to equal my cell value on summary pa =?Utf-8?B?a2x5c2VsbA==?= Microsoft Excel Programming 0 14th Jun 2007 05:16 PM
Pivot table page filter not accepting multiple values. Workaround? =?Utf-8?B?amNv?= Microsoft Excel Worksheet Functions 2 25th Sep 2005 09:35 PM
pivot tables - top 10 summary & total =?Utf-8?B?QWRhbSBB?= Microsoft Excel Misc 1 21st Oct 2004 11:40 PM


Features
 

Advertising
 

Newsgroups
 


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