Word.dot file

  • Thread starter Thread starter Bill
  • Start date Start date
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
 
It's the Body property. Use the Bookmark.InsertAfter method to insert it
into your Word document.
 
Like this:

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

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

-Bill
 
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
 
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
 
Back
Top