Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 37
Default Macro to add data once a Pivot Table has been refreshed

Hi,

I have a macro in place that uses the Advanced Filter funtion to pull out
data for a particular month and then update an exisiting Pivot Table with the
new months information. This works really well.

However, we use the Page area to select client information. Once the client
has been selected I would like a macro to run automatically to copy in
certain information relevant to that client underneath the pivot table.

My two problems are that I have no idea how to set the macro off once a page
option has been selected or how to get my macro to copy data based on the
current number of rows used.

Any ideas gratefully received.

Using Excel 2003

Many thanks
Any ideas?
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 35,218
Default Macro to add data once a Pivot Table has been refreshed

There's a Worksheet_PivotTableUpdate event that you could tie into, but that may
fire too often for you.

Have you thought of just plopping a button near the page field that the user
could click after they changed the value?



Mustang wrote:

Hi,

I have a macro in place that uses the Advanced Filter funtion to pull out
data for a particular month and then update an exisiting Pivot Table with the
new months information. This works really well.

However, we use the Page area to select client information. Once the client
has been selected I would like a macro to run automatically to copy in
certain information relevant to that client underneath the pivot table.

My two problems are that I have no idea how to set the macro off once a page
option has been selected or how to get my macro to copy data based on the
current number of rows used.

Any ideas gratefully received.

Using Excel 2003

Many thanks
Any ideas?


--

Dave Peterson
Reply
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
Updating chart from refreshed pivot table data Stephanie Charts and Charting in Excel 0 July 17th 09 07:17 PM
Column width of Pivot Table data goes back to default when data refreshed Rick J Excel Discussion (Misc queries) 5 September 16th 08 08:36 AM
Pivot Table format changes when data is refreshed Bendinblues Excel Discussion (Misc queries) 8 October 22nd 07 02:45 PM
Is there a way to compare a pivot table refreshed data to old one Wes Excel Discussion (Misc queries) 1 July 6th 05 05:34 PM
How can deleted data reappear in a refreshed pivot table in Excel excel_user123456 Excel Discussion (Misc queries) 3 February 23rd 05 08:34 PM


All times are GMT +1. The time now is 11:18 AM.

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

About Us

"It's about Microsoft Excel"