Archived from groups: microsoft.public.windowsxp.basics (More info?)
I'm running Word Macros from VBScript scripts. I create a Word application
object ,
set Visible to false, and open the Word document that contains my macros. Mo
windows open while the script runs the macros. Once all the processing is
done, the driver script executes "appWord.Documents.Close()".
THEN an empty Word window visibly opens and remains there until I manually
close it.
What's going on??? I'm automating processes to run reports every night and
don't want this window hanging around. Is there another command I should be
using to get rid of the Word session? (I do the same thing with Excel
("appXL.Workbooks.Close()" ) and it works fine.)
Archived from groups: microsoft.public.windowsxp.basics (More info?)
I meant "NO windows open while the script runs the macros."
"edger" wrote:
> I'm running Word Macros from VBScript scripts. I create a Word application
> object ,
> set Visible to false, and open the Word document that contains my macros. Mo
> windows open while the script runs the macros. Once all the processing is
> done, the driver script executes "appWord.Documents.Close()".
> THEN an empty Word window visibly opens and remains there until I manually
> close it.
>
> What's going on??? I'm automating processes to run reports every night and
> don't want this window hanging around. Is there another command I should be
> using to get rid of the Word session? (I do the same thing with Excel
> ("appXL.Workbooks.Close()" ) and it works fine.)
>
> P.S.: Is there a better forum for this question?
Archived from groups: microsoft.public.windowsxp.basics (More info?)
appWord.Application.Quit
--
Doug Knox, MS-MVP Windows Media Center\Windows Powered Smart Display\Security
Win 95/98/Me/XP Tweaks and Fixes
http://www.dougknox.com --------------------------------
Per user Group Policy Restrictions for XP Home and XP Pro
http://www.dougknox.com/xp/utils/x [...] onsole.htm --------------------------------
Please reply only to the newsgroup so all may benefit.
Unsolicited e-mail is not answered.
"edger" <edger@discussions.microsoft.com> wrote in message news880960D-E2D9-4640-9328-D87E0E105F18@microsoft.com...
> I'm running Word Macros from VBScript scripts. I create a Word application
> object ,
> set Visible to false, and open the Word document that contains my macros. Mo
> windows open while the script runs the macros. Once all the processing is
> done, the driver script executes "appWord.Documents.Close()".
> THEN an empty Word window visibly opens and remains there until I manually
> close it.
>
> What's going on??? I'm automating processes to run reports every night and
> don't want this window hanging around. Is there another command I should be
> using to get rid of the Word session? (I do the same thing with Excel
> ("appXL.Workbooks.Close()" ) and it works fine.)
>
> P.S.: Is there a better forum for this question?
You are about to answer a thread that has been inactive for more than 6 months. If you still wish to proceed, please ensure that your posting is original and does not duplicate or overlap any prior responses to this thread.