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?