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

Workdays for a market open Mon, Wed, Friday?
Yes! Use "0101011" for the weekend argument in NETWORKDAYS.INTL or WORKDAY.INTL. The 7 digits start on Monday. 1 means it is a weekend.
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,214,585
Messages
6,120,399
Members
448,957
Latest member
Hat4Life

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