Set excel file to automatically refresh the same time each day

Barry NP

New Member
Joined
Jul 18, 2017
Messages
24
Hi all,

I'm hoping that someone can assist me with this!

I have an Excel file located on my C drive C:\Users\Barry\Concessions\Concessionsregister.xlsm

There is an access database in the same location C:\Users\Barry\Concessions\ConcessionsDatabase.V1.accdb

I have a data connection in excel linking to the accessdatabase which is manually refreshed each day by clicking on Refresh All in theExcel Data ribbon to pull back any updates from the Access Database.

Is there a way that this can be done automatically with vbacode so that the following occurs:
Automatically open Excel file each day at 6am (or triggeroff a file refresh on the closed file at 6am each day)

Excel File is refreshed with the Refresh All function(refreshing the file takes approx. 10 – 20 seconds)

Excel file is saved (in the same file location) and closedafter the refresh.

I have been advised to use Windows Scheduler to do this, butnot sure how to proceed!

Any assistance on this would be greatly appreciated.

Many thanks,
Barry.
 

Excel Facts

Select all contiguous cells
Pressing Ctrl+* (asterisk) will select the "current region" - all contiguous cells in all directions.
Just to add, the PC is left switched on overnight Monday to Friday so that the update can be scheduled.
 
Upvote 0

Forum statistics

Threads
1,223,893
Messages
6,175,249
Members
452,623
Latest member
Techenthusiast

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