PowerPivot Refreshing Data Automatically within Excel Window

fr650008

New Member
Joined
Jun 21, 2014
Messages
9
Hello,

I have created several spreadsheets using PowerPivot. These sheets are being used by many people in the company I'm working in to access information. Since some of the users do no have a lot of excel skills I have created Refresh macro buttons on each spreadsheet to update the PowerPivot pivot tables. I have used the code from the following website: Automating PowerPivot Refresh operation from VBA | Tom Gleeson - Power Pivot and Excel Consultant. Lately the users of the reports are getting errors saying the database can not be located. With some investigation it looks as though the macro is looking for a connection that no longer exists and needs to find a new connection. Does anyone know of changes to the code to get rid of this error. OR more preferably a way to refresh the PowerPivot data within the excel spreadsheet?

Any help is greatly appreciated!
 

Excel Facts

Waterfall charts in Excel?
Office 365 customers have access to Waterfall charts since late 2016. They were added to Excel 2019.
I forgot to mention that my PowerPivots are connected to a Microsoft 2012 SQL database and we currently do not have sharepoint.
Thanks
 
Upvote 0

Forum statistics

Threads
1,223,766
Messages
6,174,373
Members
452,560
Latest member
Turbos

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