Insert Bookmarked text

R

Roy Lasris

I use Word as the default composer in Outlook.

I have a button in Word that, using VBA code, will insert into the active
document the contents of a
certain bookmark found in another Word document.

Here is the essence of the VBA code:

Selection.InsertFile FileName:="MyDocName.doc", Range:="Address"

In 'regular' Word, the process works just fine, and the text found in
bookmark 'Address' is properly inserted.

But in Outlook, the command results in the entire document "MyDocName.doc"
being inserted as an attachment to the message. Is there any way to get just
the term "Address" and not the entire document?

Ed (in Virginia)
 

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