To insert text into Word header from macro

R

Robert

I need a Word Template that sets up a report format. It
needs various fields such as subject and date that should
be on the first page and on subsequent pages in a
different format. I want to use Word header on subsequent
pages as this gives the different first page
functionality. The problem is I can't get VBA to go to
bookmarks inside the header. Any ideas?
 
J

Jezebel

Use document properties instead. In the template you insert DocProperty
fields; in VBA you set the property value then update fields.
 
R

Robert

-----Original Message-----
Use document properties instead. In the template you insert DocProperty
fields; in VBA you set the property value then update fields.







.
Thanks for that, your answer looks promising, but how do
you set the value of the document properties from the
Macro?
 
R

Robert

-----Original Message-----
ActiveDocument.CustomDocumentProperties("MyProperty") = "XXX"







.
Thanks very much for your help - unfortunately I can't
try it immediately but am now confident.
 

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

Top