Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
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. |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
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. |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Windows Scheduled Tasks | Excel Discussion (Misc queries) | |||
What is correct syntax when using Scheduled Tasks? | Excel Discussion (Misc queries) | |||
scheduled tasks | Excel Programming | |||
Open workbook with scheduled tasks? | Excel Programming | |||
starting macros via scheduled tasks | Excel Programming |