How can I store a merge field value as document metadata?

Hi,

I'm looking for some ideas on how I can achieve this:

I have a Word Template that is used in a mail merge.

When the merge happens, I want to store one of the the merge field values into the document in such a way that I can use this value later from a VBA macro.

Can anyone give me ideas on how I could do this

Thanks.

Thom



Answer this question

How can I store a merge field value as document metadata?

  • Molku

    In case this is any help to anyone else...

    I managed to achieve what I wanted by adding code to the Document_New and Document_Open event handlers that took the value I wanted directly from the merge Datasource and stored it as a Document.Variable.

    This Document Variable is copied into the new document instances that is created during the merge.

    Thom


  • How can I store a merge field value as document metadata?