VBA Refreshing Specific Tables

one3nine0

Board Regular
Joined
Jul 21, 2014
Messages
127
I have two tables in Excel 2016 powerpivot.

One is coming from an access database and has 500,000+ rows, [Invoices].

The second is a linked table within the excel document, [New_Prices].

The idea is to enter in new pricing in the linked table, and refresh the pivot table so that it reflects the new prices.

But when I right click the pivot table to refresh, it refreshes both the [New_Prices] table and the [Invoices] table which makes it unnecessarily long as I don't need the [Invoice] table updated.

Is there a way to update the model in powerpivot without having to open it and manually selecting the table i want refreshed?

I was thinking of a VBA macro, but I dont know how to specify a table in powerpivot.
 

Excel Facts

Copy formula down without changing references
If you have =SUM(F2:F49) in F50; type Alt+' in F51 to copy =SUM(F2:F49) to F51, leaving the formula in edit mode. Change SUM to COUNT.

Forum statistics

Threads
1,214,788
Messages
6,121,577
Members
449,039
Latest member
Arbind kumar

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