R
RB Smissaert
I am running some code in Excel to print all Word .doc files in a particular
folder.
With one particular user there is a message popping up when he runs this in
Word 2002, but fine in Word 2003:
Do you want to save the changes you made to xxx.doc?
at the following code.
I presume it is the third line, but I can't reproduce it:
wd.Documents.Open filename:=arrFiles2(i, 2), ReadOnly:=True
wd.ActiveDocument.PrintOut Background:=False
wd.ActiveDocument.Close wdDoNotSaveChanges
Then whether he clicks No or Yes he gets an Error somewhere in a Word
messagebox.
Not sure now what the error is.
Word is declared like this:
Dim wd As Word.Application
Set wd = New Word.Application
Just no idea why this message and error possibly could occur and grateful
for any suggestions.
RBS
folder.
With one particular user there is a message popping up when he runs this in
Word 2002, but fine in Word 2003:
Do you want to save the changes you made to xxx.doc?
at the following code.
I presume it is the third line, but I can't reproduce it:
wd.Documents.Open filename:=arrFiles2(i, 2), ReadOnly:=True
wd.ActiveDocument.PrintOut Background:=False
wd.ActiveDocument.Close wdDoNotSaveChanges
Then whether he clicks No or Yes he gets an Error somewhere in a Word
messagebox.
Not sure now what the error is.
Word is declared like this:
Dim wd As Word.Application
Set wd = New Word.Application
Just no idea why this message and error possibly could occur and grateful
for any suggestions.
RBS