#1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 108
Default Pivot Table

Hi,

I have like 8 pivot tables in a some sheet.
Is it possible to have just one update button to update all tables at a time?

Thanks

JPG
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1,316
Default Pivot Table

Press Alt+F11 to open the VBE and then click INSERT in the menu and select
MODULE.

Enter the following sub

Sub GlobalUpdate()

Dim pt As PivotTable
Dim ws As Worksheet

For Each ws In ThisWorkbook.Worksheets
For Each pt In ws.PivotTables
pt.Update
Next pt
Next ws

Set pt = Nothing
Set ws = Nothing

End Sub

Save the module, click FILE in the menu and select CLOSE AND RETURN TO EXCEL.

Then modify a toolbar and assign the macro named GlobalUpdate to a toolbar
button
--
Kevin Backmann


"juanpablo" wrote:

Hi,

I have like 8 pivot tables in a some sheet.
Is it possible to have just one update button to update all tables at a time?

Thanks

JPG

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 108
Default Pivot Table

Ok great, thanks.
When I execute the macro, insuficient memory :(
Any ideas how to improve?

Regards

JPG

"Kevin B" wrote:

Press Alt+F11 to open the VBE and then click INSERT in the menu and select
MODULE.

Enter the following sub

Sub GlobalUpdate()

Dim pt As PivotTable
Dim ws As Worksheet

For Each ws In ThisWorkbook.Worksheets
For Each pt In ws.PivotTables
pt.Update
Next pt
Next ws

Set pt = Nothing
Set ws = Nothing

End Sub

Save the module, click FILE in the menu and select CLOSE AND RETURN TO EXCEL.

Then modify a toolbar and assign the macro named GlobalUpdate to a toolbar
button
--
Kevin Backmann


"juanpablo" wrote:

Hi,

I have like 8 pivot tables in a some sheet.
Is it possible to have just one update button to update all tables at a time?

Thanks

JPG

  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1,316
Default Pivot Table

I don't know how your pivot tables have been created, but if they're all
using the same pivot data you can conserve by using an existing pivot table
as the data source for the next pivot table you create. Any time you can
reference an existing pivot table as a data source you'll be conserving
resources.

The only other thing that I can think of is close all unnecessary
applications, or get additional RAM for your PC.

--
Kevin Backmann


"juanpablo" wrote:

Ok great, thanks.
When I execute the macro, insuficient memory :(
Any ideas how to improve?

Regards

JPG

"Kevin B" wrote:

Press Alt+F11 to open the VBE and then click INSERT in the menu and select
MODULE.

Enter the following sub

Sub GlobalUpdate()

Dim pt As PivotTable
Dim ws As Worksheet

For Each ws In ThisWorkbook.Worksheets
For Each pt In ws.PivotTables
pt.Update
Next pt
Next ws

Set pt = Nothing
Set ws = Nothing

End Sub

Save the module, click FILE in the menu and select CLOSE AND RETURN TO EXCEL.

Then modify a toolbar and assign the macro named GlobalUpdate to a toolbar
button
--
Kevin Backmann


"juanpablo" wrote:

Hi,

I have like 8 pivot tables in a some sheet.
Is it possible to have just one update button to update all tables at a time?

Thanks

JPG

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
how to create pivot table from existing pivot table in excel 2007 Udayraj Dhulekar Excel Discussion (Misc queries) 2 July 8th 13 08:22 PM
Copying values from pivot table to cells outside pivot table richzip Excel Discussion (Misc queries) 4 January 16th 08 11:03 PM
Filter lines with Pivot table and non pivot table columns Grover Charts and Charting in Excel 4 September 28th 07 03:16 AM
Filter lines with Pivot table and non Pivot table columns Grover Excel Discussion (Misc queries) 1 September 26th 07 12:48 AM
Filter lines containing pivot table and non pivot table data Grover Excel Worksheet Functions 0 September 24th 07 07:20 PM


All times are GMT +1. The time now is 10:00 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"