Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 273
Default Use VB in Excel to close open Word Document

Hi, new to all this.
Using Visual Basic I have managed to get Excel to open up a word document,
add some data to it from an Excel workbook, save and print it off, I am just
looking for a way of closing the document back down again using VBscript. I
have tried using .Close to no nocicable results and the help wizard suggests
..appWd.Quit which the debugger does not like. Any ideas? Thanks in advance.
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 273
Default Use VB in Excel to close open Word Document

Hi just to update.
I have worked out what the debugger error is on the .Quit command.
I am trying to close Word whilst it is still printing the document. Any
ideas of what I need to add in to allow Word to finish printing before
closing.
Thanks
Gary

"Gary" wrote:

Hi, new to all this.
Using Visual Basic I have managed to get Excel to open up a word document,
add some data to it from an Excel workbook, save and print it off, I am just
looking for a way of closing the document back down again using VBscript. I
have tried using .Close to no nocicable results and the help wizard suggests
.appWd.Quit which the debugger does not like. Any ideas? Thanks in advance.

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default Use VB in Excel to close open Word Document

have it print in the foreground.

--
Regards,
Tom Ogilvy

"Gary" wrote in message
...
Hi just to update.
I have worked out what the debugger error is on the .Quit command.
I am trying to close Word whilst it is still printing the document. Any
ideas of what I need to add in to allow Word to finish printing before
closing.
Thanks
Gary

"Gary" wrote:

Hi, new to all this.
Using Visual Basic I have managed to get Excel to open up a word

document,
add some data to it from an Excel workbook, save and print it off, I am

just
looking for a way of closing the document back down again using

VBscript. I
have tried using .Close to no nocicable results and the help wizard

suggests
.appWd.Quit which the debugger does not like. Any ideas? Thanks in

advance.


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
excel trying to open word document tina Excel Discussion (Misc queries) 2 April 19th 07 02:16 PM
Open A Word Document from Excel roadkill Excel Programming 4 November 4th 05 10:15 PM
what happens if I open an excel document in word? Emily Excel Discussion (Misc queries) 3 April 2nd 05 10:49 AM
open up a word document in excel [email protected] Excel Programming 1 December 23rd 04 04:43 PM
Open a word document in excel Michael[_29_] Excel Programming 1 March 2nd 04 09:58 PM


All times are GMT +1. The time now is 04:14 AM.

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

About Us

"It's about Microsoft Excel"