Urgent Help Required PLEASE (Thanks!)
I am currently using Word 97 (Sr1a)
What version of Word are you using? If you're using Word 2000, it will look as though each document has been opened in a separate instance of Word.
I recently asked for some help on this topic and was given the following source code. The problem I have is opening a document from a web page button. The document needs to load in the relevant application (ie. Word) - but needs to use an existing copy of the app if it is running else create a new window.
The code below SHOULD do this (according to the VB Scripting guides) - but it doesn't, it always opens new instances of word!
Please help me - it's driving me mad now!
On Error Resume Next
Set objWord = GetObject(,"Word.Application")
if Err then
Set objWord = GetObject("","Word.Application")
On Error GoTo 0
objWord.visible = true
Set objDoc = objWord.Documents.Open("//Server/Share/Manual.doc")
Many thanks for all your help,