VBScript problem

Forum Windows XP : Windows XP General Discussion - VBScript problem

Tom's Hardware: Over 1.4 million members in 6 different countries available to answer all your high-tech questions. Sign up now! Its free!
Word :    Username :           
 

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.)

P.S.: Is there a better forum for this question?

Sponsored Links
Register or log in to remove.

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?

Reply to Anonymous

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 news:D880960D-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?

Reply to Anonymous
Tom's Hardware > Forum > Windows XP > Windows XP General Discussion > VBScript problem
Go to:

There are 1200 identified and unidentified users. To see the list of identified users, Click here.

Please mind

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.

Add a reply Cancel
Sponsored links
  • Ask the community now
  • Publish
Ad
They won a badge
Join us in greeting them