Run Macro at certain time

Spockster

Board Regular
Joined
Jun 9, 2002
Messages
108
Is there a way to run a macro without having the sheet open or even logged into the system? IF so can it be run at a certain time?
 

Excel Facts

What is =ROMAN(40) in Excel?
The Roman numeral for 40 is XL. Bill "MrExcel" Jelen's 40th book was called MrExcel XL.
This could be difficult. Security may get in the way of accomplishing this. Here's how it could work though--

1. First, set macro security to low so that it doesn't ask to run macros when a workbook is opened.
2. Next, set up a scheduled task (see the MS Scheduler for details). The command would look like 'c:Program FilesMicrosoft OfficeOffice 10Excel.exe "c:...MySpreadsheet.xls"
3. Create an auto_open() macro in the above spreadsheet with the tasks you want to do. You could have it minimize the application and close it when it's done. See Julian's Excel Solutions for ideas.

The biggest hang up is the the medium security dialog box that asks if you want to enable/disable the macro for the workbook. Running Excel in the low security setting is a little risky because if you open a spreadsheet with a virus, it will just run it.

But as you can see, it's doable.
 
Upvote 0

Forum statistics

Threads
1,222,900
Messages
6,168,926
Members
452,227
Latest member
sam1121

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