Select the product you need help with
Word document opens as read-only when you try to programmatically open the documentArticle ID: 275976 - View products that this article applies to. This article was previously published under Q275976 SYMPTOMS When you try to programmatically open a Microsoft Word
document, the document opens as a read-only document and you cannot edit the
document. When you add the code When you open the same document using the Open command, the following message appears: PathName should be opened as read-only
unless changes to it need to be saved. Open as read-only? CAUSE This problem occurs because Visual Basic opens any document
with the ReadOnlyRecommended attribute set to true as a read-only document,
even if you attempt to set the ReadOnly attribute to false. Note The following example applies to Word 2003 and 2002:
WORKAROUND To work around this problem, use the following Word Basic
macro instead of the Visual Basic macro shown in step 8 of the "Cause" section
of this article: STATUSMicrosoft
has confirmed that this is a problem in the Microsoft products that are listed
at the beginning of this article.
PropertiesArticle ID: 275976 - Last Review: January 29, 2007 - Revision: 2.2
| Article Translations
|


Back to the top








