Article ID: 195425 - View products that this article applies to.
This article has been archived. It is offered "as is" and will no longer be updated.
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: January 12, 2015 - Revision: 6.0