Auto Update Pivot Table

djmurray

New Member
Joined
Jan 8, 2013
Messages
30
Hey guys,

I have built a dashboard in excel using a couple MSSQL queries and then I filter the data in a pivot table.

The only problem I have is that the data in the pivot is not updating unless I refresh.

I am populating a few sheets in a table and have set them to auto refresh every 3 minutes.

Is there any way to make all the pivot table update after the data in the tables has updated?

(there are multiple pivots in the same sheet)

Appreciate any assistance!
 

Excel Facts

Will the fill handle fill 1, 2, 3?
Yes! Type 1 in a cell. Hold down Ctrl while you drag the fill handle.
Hi,

In the VBA Project, select the worksheet that house the pivot table, then type the below event code....
Code:
Private Sub Worksheet_Activate()
    ThisWorkbook.RefreshAll
End Sub

This will update your pivot on all sheets as soon as you activate this sheet.

Is this what you're looking for?
 
Upvote 0

Forum statistics

Threads
1,214,983
Messages
6,122,583
Members
449,089
Latest member
Motoracer88

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