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

Format cells as time
Select range and press Ctrl+Shift+2 to format cells as time. (Shift 2 is the @ sign).

MarkHenri

Board Regular
Joined
Aug 2, 2002
Messages
106
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.
 

Forum statistics

Threads
1,143,641
Messages
5,719,988
Members
422,257
Latest member
Calion

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
Top