documentproperty's disapeare when merging

  • Thread starter Eric van der Niet -- www.NoteTaker.nl
  • Start date
E

Eric van der Niet -- www.NoteTaker.nl

Hello,

I am using Word to perform a mailmerge. BUT:
I also use some documentproperty fields in my document. I update these with
the App_MailMergeBeforeRecordMerge event. But in my result there are NO
documentproperty fields!! I can live with a conversion to plain tekst, but
the field are'nt updated either. The code:

Private Sub App_MailMergeBeforeRecordMerge(ByVal Doc As Document, Cancel As
Boolean)
ActiveDocument.CustomDocumentProperties("omschrijving").Value =
omschrijving
ActiveDocument.CustomDocumentProperties("status").Value = status
ActiveDocument.CustomDocumentProperties("account").Value = account
ActiveDocument.CustomDocumentProperties("id").Value = id
end sub

when i debug the variables are all filled in.
Can someone please help!?
--
With kind regards,

Eric van der Niet
Consultant
[email protected]
www.RealData.nl
www.NoteTaker.nl
 
Top