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

Format cells as date
Select range and press Ctrl+Shift+3 to format cells as date. (Shift 3 is the # sign which sort of looks like a small calendar).
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,214,911
Messages
6,122,198
Members
449,072
Latest member
DW Draft

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