Refreshing multiple forms and pivot tables

torontosnow

New Member
Joined
Apr 30, 2002
Messages
2
Hi, I am very new to Macro Programming and this is my first attempt. I am hoping someone here can help me. Basically, I have multiple worksheets, and muliple pivot tables, which I would like to be refreshed when the user either opens the workbook, or when he clicks on something in the book itself. I did a search already and saw this sort of question has been asked before, but I did not understand the solution since I am very new. Can somone explain or give me an example as well? Thanks for your help.
 

Excel Facts

Pivot Table Drill Down
Double-click any number in a pivot table to create a new report showing all detail rows that make up that number
Within a pivot table right click and go to table options.

Check the box for "refresh on open" (towards the lower left)

this will refreh the pivot tables when the file is opened.
 
Upvote 0
The macro line is something like this:
Set pvtTable1 = Worksheets("Mtr1").Range("d10").PivotTable
pvtTable1.RefreshTable

Where d10 is the position of the pivottable. You will need an IF statement before depending on what you want to trigger it.
 
Upvote 0

Forum statistics

Threads
1,214,516
Messages
6,119,979
Members
448,934
Latest member
audette89

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top