PC Review


Reply
Thread Tools Rate Thread

Code for a Macro that allows a Pivot table to be repeatedly run (fora dynamic rows in a table, but static field names)

 
 
Mike C
Guest
Posts: n/a
 
      11th Feb 2008
Hello - Any chance anyone has some code available that would allow me
to create a pivot table for a range of data that changes?

I run the pivot by grouping the same fields in the table, but the
number of rows in the data set is different each day.

Thanks for any help you can provide.

Even if the code doesn't fix my problem exactly, it will still be nice
to see what code you have available, so that I can learn from it.

Thanks!
 
Reply With Quote
 
 
 
 
Jon Peltier
Guest
Posts: n/a
 
      11th Feb 2008
If you use a dynamic range for the pivot table source data, or a List in
Excel 2003, or a Table in Excel 2007, all you need to do is refresh the
pivot table by clicking on the "!" button. No code needed.

- Jon
-------
Jon Peltier, Microsoft Excel MVP
Tutorials and Custom Solutions
Peltier Technical Services, Inc. - http://PeltierTech.com
_______


"Mike C" <(E-Mail Removed)> wrote in message
news:5294e694-5f3c-44db-a395-(E-Mail Removed)...
> Hello - Any chance anyone has some code available that would allow me
> to create a pivot table for a range of data that changes?
>
> I run the pivot by grouping the same fields in the table, but the
> number of rows in the data set is different each day.
>
> Thanks for any help you can provide.
>
> Even if the code doesn't fix my problem exactly, it will still be nice
> to see what code you have available, so that I can learn from it.
>
> Thanks!



 
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
Dynamic SQL and ADO Recordset when table field names have spaces John F Microsoft Access VBA Modules 3 7th Jan 2009 04:29 AM
Re: Dynamic Column in Pivot Table Macro Roger Govier Microsoft Excel Programming 5 2nd May 2007 08:03 PM
Pivot Table Repeats Names in multiple rows =?Utf-8?B?UmljY2FyZG8=?= Microsoft Excel Misc 3 3rd Oct 2006 09:53 PM
Pivot Table - Dynamic Field carlyman Microsoft Excel Misc 3 26th Aug 2005 12:05 AM
Pivot table field names =?Utf-8?B?c29tZXdoYXQgY29uZnVzZWQ=?= Microsoft Excel Worksheet Functions 1 14th Dec 2004 03:15 AM


Features
 

Advertising
 

Newsgroups
 


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