Use bookmark as document title

A

A_Classic_Man

I have a word document that has bookmarks. The bookmarks are filled
with data and the document is sent as an email attachment to other
users. Is it possible to have the information in one of the bookmarks
to be used as the document title so when the email is received the
document title is displayed as the name of email attachment? Word
2003 is the version I am using.

Thanks
Ron
 
D

Doug Robbins - Word MVP

Runing a macro with the following code will save the document with the name
entered into the bookmark "nameofbookmarkthatyouwantusedasfilename"

With ActiveDocument
.SaveAs .Bookmarks("nameofbookmarkthatyouwantusedasfilename").Range.Text
End With

--
Hope this helps.

Please reply to the newsgroup unless you wish to avail yourself of my
services on a paid consulting basis.

Doug Robbins - Word MVP
 
A

A_Classic_Man

Runing a macro with the following code will save the document with the name
entered into the bookmark "nameofbookmarkthatyouwantusedasfilename"

With ActiveDocument
    .SaveAs .Bookmarks("nameofbookmarkthatyouwantusedasfilename").Range.Text
End With

--
Hope this helps.

Please reply to the newsgroup unless you wish to avail yourself of my
services on a paid consulting basis.

Doug Robbins - Word MVP







- Show quoted text -

Doug

Sorry about the long pause. Other things to deal with.

When I try your solution, the label of the email attachment shows as
the name of the word document.

Let me explain better what I am doing. I have an Access form with
fields. The field data is sent to a Word document with bookmarks by VB
code. The Word document is then emailed to persons who complete
additional bookmarks on the document and email the document back to
the sender. Then the data is placed into the Access data base. The
Word document does not need be saved.

Any additional help is apreciated and again sorry for the long pause.

Ron
 

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