Article ID: 195425 - View products that this article applies to.
This article was previously published under Q195425
Custom document properties that are added to a Microsoft Word document by using Automation are not saved after the code calls "Save."
Word does not "dirty" the document when custom document properties are added by usingAutomation. When the document is not dirty, calls to "Save" just return without performing anything.
In the document to which you are adding properties, set the "Saved" property to False. This will let Word know the document must be saved.
The following Visual Basic code demonstrates how to add a custom document property and set the "Saved" property to False:
Article ID: 195425 - Last Review: April 16, 2007 - Revision: 5.1