The standard vbscript suggestion for opening a Word doc (in fact one of the FAQs on this forum suggests this) is something like this:
dim wapp
dim wWord
dim Visible
set wApp = createobject("Word.application")
wApp.visible = true
set wWord = wApp.Documents.Open ("C:\Pathhhhh\Wordfileeeee.doc")
This works just dandy... Unless you already have another Word doc open. If that happens, you get an annoying message when you close the doc, "This file is in use by another application or user.
(C:\Documents and Settings\...\Normal.dot)" and then you have to close a bunch of windows and say no and cancel and such. If you have a suggestion to get around this message, I'd like to hear it. If it is a new line of code. Please show me where in this script it should be placed. If it's been tested, that would be even better. Other suggestions I've encountered elsewhere do not work.
dim wapp
dim wWord
dim Visible
set wApp = createobject("Word.application")
wApp.visible = true
set wWord = wApp.Documents.Open ("C:\Pathhhhh\Wordfileeeee.doc")
This works just dandy... Unless you already have another Word doc open. If that happens, you get an annoying message when you close the doc, "This file is in use by another application or user.
(C:\Documents and Settings\...\Normal.dot)" and then you have to close a bunch of windows and say no and cancel and such. If you have a suggestion to get around this message, I'd like to hear it. If it is a new line of code. Please show me where in this script it should be placed. If it's been tested, that would be even better. Other suggestions I've encountered elsewhere do not work.