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
macropod - 13 Aug 2004 23:02 GMT
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
> I am successfullly using VBA Code to which will wearch to
> see if a bookmark exists in my documentand then populate
[quoted text clipped - 14 lines]
> Thanks!
> Kathy