Run macro automatically at specific time every day

dr377

New Member
Joined
May 1, 2014
Messages
5
Hi All, looking for a bit of advise on how to automatically run a macro daily.

I know that i can use:Sub auto_open() but i will need to access the file throughout the day and don't want the macro running every time I open the workbook.

I have read online that I could use the task scheduler could anyone help me set this up ?

here are the details of the workbook:
file path: C:\Users\admin\Desktop\Book1.xlsm

the macro I want to call is in a module called "test" and the sub is "Public Sub test()"

this workbook is updated daily I need to run the macro automatically every day at 5am.

What the macro does is it copies the new data and opens another workbook and pastes it to the correct place.

If anymore info is needed please ask.


Thanks
 

Excel Facts

Who is Mr Spreadsheet?
Author John Walkenbach was Mr Spreadsheet until his retirement in June 2019.

Forum statistics

Threads
1,223,162
Messages
6,170,431
Members
452,326
Latest member
johnshaji

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