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 gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Launching Word with VBScript - work only one time

Status
Not open for further replies.

matsab

Programmer
Oct 22, 2002
2
FR
I use the following VBScript to launch a Word application:

<SCRIPT LANGUAGE=vbscript>
Set WordApp = CreateObject(&quot;Word.Application&quot;)
WordApp.Visible = true
</SCRIPT>

My OS is Windows NT SP6. I use Word 97 and IE 5.5.

I launch IE and open my page containing this script.

The first time, Word appear correctly. But if i try to refresh my page
(whithout closing IE), Word is'nt launched any more (nothing happen).
I must close and restart IE to make Word appear again.


If i make the same test with Windows 2000/IE 6/Word 2000, the problem
does'nt appear (Word is launched every time i refresh my page).


Someone could tell me how to resolve the problem with Word 97/IE 5.5 ?

Thank you.
 
Try putting:

Code:
WordApp = Nothing
before your closing XML tag.

--James
 
Thanks James !

I've already try this but it does'nt work...

In fact, i've try to install VBScript 5.6 and with this release the problem does'nt appear. So, the problem seems to come from the release 5.5 of VBScript.

But I have to find a way to make it work with release 5.5 because i can't use the 5.6.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top