Bookmarks & MailMerge

A

Alan UK

We have a letter that contains some bookmarks, but before
we use these as references in VBA, the document is subject
to a mailmerge to bring in some personal data. The merges
have no relationship to the bookmarks.
The bookmarks are all deleted, however, by the action of
the mail merge.
Whilst it would be possible, if labourious, to
programmatically re-insert the bookmarks after the merge
we would like to prevent them disappearing in the first
place. Their whole function was save coding in finding a
point the document. Is this possible?
 
C

Charles Kenyon

No, it is not. However you could insert macrobutton fields and have your
code replace them with bookmarks at the start of your procedure (post
merge). Bookmarks have to be unique in a document and in a typical mailmerge
they could not be.

OTH, I do merges with documents that have bookmarks in them and they work.
However, I do not merge to printer or document, just to the screen. I am
simply working with one record. I edit the merge result on screen, print and
save it. I don't have a clue how to implement this in vba, though.
 
C

Cindy M -WordMVP-

Hi Alan,
We have a letter that contains some bookmarks, but before
we use these as references in VBA, the document is subject
to a mailmerge to bring in some personal data. The merges
have no relationship to the bookmarks.
The bookmarks are all deleted, however, by the action of
the mail merge.
Whilst it would be possible, if labourious, to
programmatically re-insert the bookmarks after the merge
we would like to prevent them disappearing in the first
place. Their whole function was save coding in finding a
point the document. Is this possible?
No, as Charles says, it's not. But which version of Word is
involved? And, assuming it's 2002 or 2003, could the bookmark
processing take place during the merge (i.e. it's not
something that would need to be done at a later point, on a
saved document)?

Cindy Meister
INTER-Solutions, Switzerland
http://homepage.swissonline.ch/cindymeister (last update Sep
30 2003)
http://www.word.mvps.org

This reply is posted in the Newsgroup; please post any follow
question or reply in the newsgroup and not by e-mail :)
 

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