Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 49
Default 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.
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,501
Default 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.

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Windows Scheduled Tasks Norm Excel Discussion (Misc queries) 2 April 30th 10 06:44 AM
What is correct syntax when using Scheduled Tasks? Doug Excel Discussion (Misc queries) 0 March 9th 09 03:49 PM
scheduled tasks tigoda Excel Programming 6 February 28th 08 02:20 PM
Open workbook with scheduled tasks? [email protected] Excel Programming 1 May 31st 05 11:16 AM
starting macros via scheduled tasks mnichols Excel Programming 1 May 24th 04 09:37 AM


All times are GMT +1. The time now is 12:19 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"