R
redryderridesagain
I am using Word 2003 (11.8026.6360) Sp1 (VBA)
When the execution of a "SaveAs" fails; as in the following statements;
ActiveDocument.SaveAs _
FileName:="D:\Documents and Settings\henryhiggin\My
Documents\Billminer\doppel.txt", _
FileFormat:=wdFormatText, _
LockComments:=False, Password:="", AddToRecentFiles:=True,
WritePassword _
:="", ReadOnlyRecommended:=False, EmbedTrueTypeFonts:=False, _
SaveNativePictureFormat:=False, SaveFormsData:=False,
SaveAsAOCELetter:= _
False, Encoding:=1252, InsertLineBreaks:=True,
AllowSubstitutions:=False, _
LineEnding:=wdCRLF
ActiveDocument.Close
The followinf statements ignore all open word docs;
passgo:
For Each docOpen In Documents
docOpen.Close SaveChanges:=wdDoNotSaveChanges
Next docOpen
The clue is that; although the documents can be closed manually; one
cannot select "SaveAs" from the "File" menu.
Is there a way of closing these stubborn files programatically?
Thanks
When the execution of a "SaveAs" fails; as in the following statements;
ActiveDocument.SaveAs _
FileName:="D:\Documents and Settings\henryhiggin\My
Documents\Billminer\doppel.txt", _
FileFormat:=wdFormatText, _
LockComments:=False, Password:="", AddToRecentFiles:=True,
WritePassword _
:="", ReadOnlyRecommended:=False, EmbedTrueTypeFonts:=False, _
SaveNativePictureFormat:=False, SaveFormsData:=False,
SaveAsAOCELetter:= _
False, Encoding:=1252, InsertLineBreaks:=True,
AllowSubstitutions:=False, _
LineEnding:=wdCRLF
ActiveDocument.Close
The followinf statements ignore all open word docs;
passgo:
For Each docOpen In Documents
docOpen.Close SaveChanges:=wdDoNotSaveChanges
Next docOpen
The clue is that; although the documents can be closed manually; one
cannot select "SaveAs" from the "File" menu.
Is there a way of closing these stubborn files programatically?
Thanks