ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Word document. (https://www.excelbanter.com/excel-programming/366302-word-document.html)

Newbie

Word document.
 
Hello !

I'm trying to open a Word document with this code :

Set Wrdapp = New Word.Application
Set WrdDoc = Wordapp.Documents.Open (filename=.....)

On a specific PC, I'm getting this error message :

Server is busy.
Impossible to terminate this action because the other application is busy.
Clic on "Toogle to" to activate the busy application"

What could be the problem ?

Thanks for help.

Newbie.



JK

Word document.
 
Are you trying to open word from word, or from excel? If it is the
latter you could try this code:

-----------------------------
Dim wrd As Object
Dim wrdDoc As Object

Set wrd = CreateObject("word.Application")
Set wrdDoc = wrd.documents.Add 'or use
wrd.Documents.Open("filename.doc")

wrd.Visible = True
-----------------------------

JK

Newbie wrote:
Hello !

I'm trying to open a Word document with this code :

Set Wrdapp = New Word.Application
Set WrdDoc = Wordapp.Documents.Open (filename=.....)

On a specific PC, I'm getting this error message :

Server is busy.
Impossible to terminate this action because the other application is busy.
Clic on "Toogle to" to activate the busy application"

What could be the problem ?

Thanks for help.

Newbie.




All times are GMT +1. The time now is 05:03 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
ExcelBanter.com