closing a word application!!
closing a word application!!
closing a word application!!
closing a word application!!
closing a word application!!
closing a word application!! closing a word application!! closing a word application!! closing a word application!! closing a word application!! closing a word application!! closing a word application!! closing a word application!!
closing a word application!! closing a word application!!
closing a word application!!
Go Back  Xtreme Visual Basic Talk > > > closing a word application!!


Reply
 
Thread Tools Display Modes
  #1  
Old 01-03-2004, 06:55 AM
sonia sonia is offline
Centurion
 
Join Date: Dec 2003
Posts: 108
Default closing a word application!!


hi all

i am trying to close a word application from vb. i am managing to close the document that i open but i am not managing to close the word application..

my code is like this to close the document that am opening

dim wdoc as word.application
set wdoc = CreateObject("word.application")
wdoc.documents.open("my location")
wdoc.activedocument.close ' this is closing the document i am opening

i need to know how to close the word application so that it will take me back to my vb form..

thanks looking forward for some help...
Reply With Quote
  #2  
Old 01-03-2004, 07:15 AM
samr samr is offline
Senior Contributor
 
Join Date: Jul 2003
Location: London, England
Posts: 993
Default

Try wdoc.Quit
Note that wdoc is a reference to the application, not the document, so the name could be misleading for you
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Closing access application - clicking X on top right rajanikanth_r Word, PowerPoint, Outlook, and Other Office Products 0 12-23-2003 12:13 AM
Reopen Word Application Henrik Landén Word, PowerPoint, Outlook, and Other Office Products 2 10-09-2003 02:14 AM
Not able to open document in currently running Word Application. vvhrcon Word, PowerPoint, Outlook, and Other Office Products 1 04-27-2003 08:22 PM
Keeping a hidden Word application hidden Archaon Word, PowerPoint, Outlook, and Other Office Products 5 01-16-2003 05:28 AM
Closing Hidden Word Document through Automation blabore Word, PowerPoint, Outlook, and Other Office Products 14 04-16-2002 11:16 PM

Advertisement:





Free Publications
The ASP.NET 2.0 Anthology
101 Essential Tips, Tricks & Hacks - Free 156 Page Preview. Learn the most practical features and best approaches for ASP.NET.
subscribe
Programmers Heaven C# School Book -Free 338 Page eBook
The Programmers Heaven C# School book covers the .NET framework and the C# language.
subscribe
Build Your Own ASP.NET 3.5 Web Site Using C# & VB, 3rd Edition - Free 219 Page Preview!
This comprehensive step-by-step guide will help get your database-driven ASP.NET web site up and running in no time..
subscribe
closing a word application!!
closing a word application!!
closing a word application!! closing a word application!!
closing a word application!!
closing a word application!!
closing a word application!! closing a word application!! closing a word application!! closing a word application!! closing a word application!! closing a word application!! closing a word application!!
closing a word application!!
closing a word application!!
 
closing a word application!!
closing a word application!!
 
-->