![]() |
Windows Scheduled Tasks
HI,
I would like to use Windows Scheduled Tasks to start excel and run a macro in that spread sheet. This gives rise to two questions 1. Can I do this. 2. How do I do it/ find information on it Thanks MarkS. |
Windows Scheduled Tasks
Hi,
You can do that fairly easily but it does require a few steps:- 1. Prepare you workbook and one way to run the macro automatically is to put it in the workbook open event like this:- Private Sub Workbook_Open() MsgBox "Hello" End Sub 2. You must now digitally sign the workbook so you don't get the 'Enable Macros' warning when it opens so in Windows:- Go to StartProgramsMicrosoft OfficeOffice Tools and build a cert from there, it's very simple and intuative. Once created, open your workbook and go to the VBE and ToolsDigital SignatureChoose. Pick the one you just created and OK then Save. Close workbook and open it again. Check "always trust this publisher" and enable macros. Now the last bit and once again in Windows Start|Settings|Control Panel and select schedule tasks Once again this is very intuative but the thing to remember on the first step is brows to you excel workbook and not simply open Excel. Mike "MarkS" wrote: HI, I would like to use Windows Scheduled Tasks to start excel and run a macro in that spread sheet. This gives rise to two questions 1. Can I do this. 2. How do I do it/ find information on it Thanks MarkS. |
All times are GMT +1. The time now is 05:09 PM. |
Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com