AreJay
08-20-2017, 08:27 PM
I can insert DOCPROPERTY and DOCVARIABLE fields into a Word 2016 document through VBA, from within Word and periodically Excel (based upon data in an Excel file). These are for various Word templates in which the data will be stored in the built-in and custom document properties when created, but will need to be modified when the documents are created from the templates for document specific information not applicable to the templates.
However, what I need to do is to insert the DocProperty fields and be able to update the document property from the field, for both the built-on and custom document properties … instead of manually modifying them through File-Info-Properties-Advanced Properties.
ContentControls do not seem to be the answer as you cannot uses them for custom document properties, in my limited experience … unless there is another way to use them that I am not aware of.
It seems that while you can place the field into Word, you cannot update the original document property with the new field value. A right-click on update only refreshes the original document property into the “read-only” field, that is, from what I have succeeded in so far.
Is there a way to accomplish viewing the Document Properties and updating the original Document Properties from the field?
Thank you.
However, what I need to do is to insert the DocProperty fields and be able to update the document property from the field, for both the built-on and custom document properties … instead of manually modifying them through File-Info-Properties-Advanced Properties.
ContentControls do not seem to be the answer as you cannot uses them for custom document properties, in my limited experience … unless there is another way to use them that I am not aware of.
It seems that while you can place the field into Word, you cannot update the original document property with the new field value. A right-click on update only refreshes the original document property into the “read-only” field, that is, from what I have succeeded in so far.
Is there a way to accomplish viewing the Document Properties and updating the original Document Properties from the field?
Thank you.