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 / January 2008

Tip: Looking for answers? Try searching our database.

How do I export a list of bookmarks from a document?

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Shawn - 10 Jan 2008 18:35 GMT
I am working with an existing word doc that is linked via bookmarks to an
excel doc and I am trying to figure out which bookmarks in the word doc go to
which cells in the excel doc.  My first step is to get a list of bookmarks in
the word doc.  Is there a way to extract a list of those?
Greg Maxey - 10 Jan 2008 20:45 GMT
This will give you a simple list in a new document.

Signature

Greg Maxey/Word MVP
See:
http://gregmaxey.mvps.org/word_tips.htm
For some helpful tips using Word.

> I am working with an existing word doc that is linked via bookmarks
> to an excel doc and I am trying to figure out which bookmarks in the
> word doc go to which cells in the excel doc.  My first step is to get
> a list of bookmarks in the word doc.  Is there a way to extract a
> list of those?
Greg Maxey - 10 Jan 2008 20:46 GMT
This will give you a simple list in a new document.

Sub ScatchMacro()
Dim oDoc1 As Document
Dim oDoc2 As Document
Dim oBM As Bookmark
Set oDoc1 = ThisDocument
Set oDoc2 = Documents.Add
For Each oBM In oDoc1.Bookmarks
 oDoc2.Range.InsertAfter oBM.Name & vbCr
Next oBM
End Sub

Signature

Greg Maxey/Word MVP
See:
http://gregmaxey.mvps.org/word_tips.htm
For some helpful tips using Word.

> I am working with an existing word doc that is linked via bookmarks
> to an excel doc and I am trying to figure out which bookmarks in the
> word doc go to which cells in the excel doc.  My first step is to get
> a list of bookmarks in the word doc.  Is there a way to extract a
> list of those?
Shawn - 10 Jan 2008 20:51 GMT
Thanks

> This will give you a simple list in a new document.
>
[quoted text clipped - 14 lines]
> > a list of bookmarks in the word doc.  Is there a way to extract a
> > list of those?
 
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.