Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Word / Mailmerge and Fax / August 2004

Tip: Looking for answers? Try searching our database.

Using the Same bookmark twice

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Kathy W - 13 Aug 2004 16:38 GMT
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
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.