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
(e-mail address removed)
www.RealData.nl
www.NoteTaker.nl
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

multible pages span pages with header 1
Word menu dissapears 1
Delete frames 1

Top