Word.dot file

B

Bill

I am pulling fields from my custom Task form into a .dot
file. I am successful with all except the notes field.
It has no value assigned to it. It's the same notes field
used in the standard Task form. What is the value I
should use to access it?

Thank you,
Bill
 
S

Sue Mosher [MVP-Outlook]

It's the Body property. Use the Bookmark.InsertAfter method to insert it
into your Word document.
 
B

Bill

Like this:

objDoc.Bookmarks("Body").Range.InsertAfter Item.Body

this did not work. Please help. Sorry, I'm a beginner!

-Bill
 
S

Sue Mosher [MVP-Outlook]

What specifically doesn't work? Do you get any error messages? Do you have a
bookmark named Body?

--
Sue Mosher, Outlook MVP
Author of
Microsoft Outlook Programming - Jumpstart for
Administrators, Power Users, and Developers
 
B

Bill

Sue,

I get an error message having to do with the bookmark. I
am following your example Ch22 Equipment Repair Request
Print Word.oft. You use this line:

objDoc.Bookmarks("Details").Range.InsertAfter
Item.Body

for the Additional Details field of your form. There is
no bookmark in the .dot file named Details but it works
in your example.

I am trying to do the same thing but using the Notes
field from Task and I get an error. I think in this
command:

objDoc.Bookmarks("Body").Range.InsertAfter Item.Body

I must have the "Body" incorrect. Perhaps it is another
word.

Thanks for your help. --Bill
 

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