Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Word / Programming / October 2006

Tip: Looking for answers? Try searching our database.

Putting CustomProperty into document

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
mateusz.adamus@gmail.com - 24 Oct 2006 16:06 GMT
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
Dian D. Chapman, MVP - 24 Oct 2006 18:29 GMT
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
>
[quoted text clipped - 4 lines]
>Mateusz [PEYN] Adamus
>http://adamus.home.pl
Klaus Linke - 25 Oct 2006 05:02 GMT
Or insert a DOCPROPERTY field.

:-)  Klaus

> 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)...
[quoted text clipped - 19 lines]
>>Mateusz [PEYN] Adamus
>>http://adamus.home.pl

Rate this thread:






 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.