Re: Word does not open when run from Scheduler
From: Peter Hewett (nospam_at_xtra.co.nz)
Date: 04/08/04
- Next message: Helmut Weber: "Re: How to set document options using VBA"
- Previous message: Keith Brickey: "How to set document options using VBA"
- In reply to: Brian Gabriel: "Word does not open when run from Scheduler"
- Next in thread: Brian Gabriel: "Re: Word does not open when run from Scheduler"
- Reply: Brian Gabriel: "Re: Word does not open when run from Scheduler"
- Messages sorted by: [ date ] [ thread ]
Date: Fri, 09 Apr 2004 03:03:47 +1200
Hi Brian Gabriel
Try logging into the account the script is using. Then start Word. For Word to
work properly when invoked as a COM object it must have been manually started at
least one in that particular account. It seems that the very first time Word is
started it initialises itself.
I built an application for a client that runs Word from a System Service, and
it took me forever to work out why it worked in the IDE but not when run from
the service component!!!
HTH + Cheers - Peter
bgab5867@hotmail.com (Brian Gabriel), said:
>I have a VBScript that tries to open a word document and run a macro.
>The script works fine when run interactively, however when the script
>is run as a scheduled task the script exits when I try:
>
>Set objWord = CreateObject("Word.Application")
>
>Any info would be great!
>
>Thanks,
>
>Brian
>bgab5867@hotmail.com
- Next message: Helmut Weber: "Re: How to set document options using VBA"
- Previous message: Keith Brickey: "How to set document options using VBA"
- In reply to: Brian Gabriel: "Word does not open when run from Scheduler"
- Next in thread: Brian Gabriel: "Re: Word does not open when run from Scheduler"
- Reply: Brian Gabriel: "Re: Word does not open when run from Scheduler"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|