Bookmark problem

  • Thread starter Thread starter Bill
  • Start date Start date
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 you. --Bill
 
Even though it's called a "Bookmark" it's really just a field on the Word
Doc. Do you have a field on your Word doc named "Body"?

--
Patricia Cardoza
Outlook MVP
www.cardozasolutions.com

Author, Special Edition Using Microsoft Outlook 2003
Author, Absolute Beginner's Guide to OneNote 2003

***Please post all replies to the newsgroups***
 
No, I don't.

But in Sue's Chapter 22 example, she called out this:

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

and she had no "details" bookmark.

Thanks for your help - Joel
 
Right, she had a field called Details in her Word doc.

--
Patricia Cardoza
Outlook MVP
www.cardozasolutions.com

Author, Special Edition Using Microsoft Outlook 2003
Author, Absolute Beginner's Guide to OneNote 2003

***Please post all replies to the newsgroups***
 
If you use the Insert | Bookmarks command, you'll see that the .dot file
does indeed contain a bookmark named Details.

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



Joel said:
No, I don't think she did. Here is the .dot and .oft file she uses.

Thanks - Joel

Patricia Cardoza - said:
Right, she had a field called Details in her Word doc.

--
Patricia Cardoza
Outlook MVP
www.cardozasolutions.com

Author, Special Edition Using Microsoft Outlook 2003
Author, Absolute Beginner's Guide to OneNote 2003

***Please post all replies to the newsgroups***
 
Back
Top