Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

STARTING MS-WORD EXCLUSIVELY FOR MY APPLICATION

Status
Not open for further replies.

Topic973

Programmer
Jun 19, 2002
4
0
0
BE
' When I use the folowing code in a VB6-app
' (and having the correct references in my VB6 project)

Dim WdApp as Word.application
Set WordApp = CreateObject("Word.Application")
WordApp.Caption = "THIS IS MY CAPTION"
WordApp.Visible = False

' THIS HAPPENS :
' I Start MS-WORD through the usual menu-items (outside of my application) and I end up seeing WdApp (recognised by the caption)
I'd like to know a way to have the menu startup another WORD-instance that has nothing todo with my WdApp.
When I close the visible one (with the caption I've programmed) , I get "remote server does not excist" errors (meaning WdApp has somehow closed on itself without the use of the WdApp.Close command that is programmed in my VB6-app)

I've heard that it can be done, but I can't find how to do it anywhere. HELP PLEASE
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top