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 / Programming / July 2005

Tip: Looking for answers? Try searching our database.

Word 2000 and Bookmarks

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
L.A. Lawyer - 09 Jul 2005 20:57 GMT
I want to replace the text in a bookmark without deleting the bookmark
itself.  How is that done?
Jean-Guy Marcil - 09 Jul 2005 21:17 GMT
L.A. Lawyer was telling us:
L.A. Lawyer nous racontait que :

> I want to replace the text in a bookmark without deleting the bookmark
> itself.  How is that done?

Like this:

Dim bkMarkName As String
Dim bkMarkRge As Range

bkMarkName = "Test"

Set bkMarkRge = ActiveDocument.Bookmarks(bkMarkName).Range
bkMarkRge.Text = "New Short Text"
ActiveDocument.Bookmarks.Add bkMarkName, bkMarkRge

Signature

Salut!
_______________________________________
Jean-Guy Marcil - Word MVP
jmarcilREMOVE@CAPSsympatico.caTHISTOO
Word MVP site: http://www.word.mvps.org

L.A. Lawyer - 09 Jul 2005 22:43 GMT
Merci, mon ami!

> L.A. Lawyer was telling us:
> L.A. Lawyer nous racontait que :
[quoted text clipped - 19 lines]
> jmarcilREMOVE@CAPSsympatico.caTHISTOO
> Word MVP site: http://www.word.mvps.org
 
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.