Using the Same bookmark twice

K

Kathy W

I am successfullly using VBA Code to which will wearch to
see if a bookmark exists in my documentand then populate
the bookmark from a recordset.

Code Used:
If MyDoc.Bookmarks.Exists("POLICY") = True Then
MyDoc.Bookmarks("POLICY").Range.Text = Trim(rs!POLICY)

My problem is I want to be able to insert the data from
the bookmark in 2 places in the document. However when I
try to insert the same bookmark a second time, it just
removes the original bookmark. I tried using a cross-
reference field, but this does not appear to work either.

Any assistance with this problem is appreciated.

Thanks!
Kathy
 
M

macropod

Hi Kathy,

You can only have one instance of a given bookmark in a document. Since you
want the same information replicated from the one bookmark in two places,
why not simply insert a REF field in your document that points to the first
bookmark (eg {REF BkMrk})? Then, a simple ActiveDocument.Fields.Update
command would update the REF field (providing it's in the body of the
document).

Cheers
 

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