Putting CustomProperty into document

D

Dian D. Chapman, MVP

Well, you can just drop it into a bookmarked location like this (or
make the code easier by using a variable for the property first)...

ActiveDocument.Bookmarks("BookmarkName").Range.Text = _
ActiveDocument.CustomDocumentProperties("PropertyName")

Dian D. Chapman
Technical Consultant, Microsoft MVP
MOS Certified, Editor/TechTrax

Free MS Tutorials: http://www.mousetrax.com/techtrax
Free Word eBook: http://www.mousetrax.com/books.html
Optimize your business docs: http://www.mousetrax.com/consulting
Learn VBA the easy way: http://www.mousetrax.com/techcourses.html
 
K

Klaus Linke

Or insert a DOCPROPERTY field.

:) Klaus


Dian D. Chapman said:
Well, you can just drop it into a bookmarked location like this (or
make the code easier by using a variable for the property first)...

ActiveDocument.Bookmarks("BookmarkName").Range.Text = _
ActiveDocument.CustomDocumentProperties("PropertyName")

Dian D. Chapman
Technical Consultant, Microsoft MVP
MOS Certified, Editor/TechTrax

Free MS Tutorials: http://www.mousetrax.com/techtrax
Free Word eBook: http://www.mousetrax.com/books.html
Optimize your business docs: http://www.mousetrax.com/consulting
Learn VBA the easy way: http://www.mousetrax.com/techcourses.html


Hi

I have a CustomProperty which I will fill in VBA code, but how can I
put it in the document's body?

best regards
Mateusz [PEYN] Adamus
http://adamus.home.pl
 

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