Export Bookmarks?

G

Guest

I have created 30 or so documents with at least 75 bookmarks in each. Is
there any way I can export a bookmark list (TXT) from each document? I need
to compare bookmarks between documents and I'm hoping that I don't have to
type them all out.
 
C

CyberTaz

I, for one, have never seen a way to do this from within Word. There may be
some type of utility that will enable you to print a list, but I'm not aware
of one.

Continue to check back because the MVPs & others usually seem to come up
with something.

Good Luck |:>)


On 3/23/05 7:03 PM, in article
I have created 30 or so documents with at least 75 bookmarks in each. Is
there any way I can export a bookmark list (TXT) from each document? I need
to compare bookmarks between documents and I'm hoping that I don't have to
type them all out.

-- (e-mail address removed)
 
J

Jean-Guy Marcil

CMK was telling us:
CMK nous racontait que :
I have created 30 or so documents with at least 75 bookmarks in each.
Is there any way I can export a bookmark list (TXT) from each
document? I need to compare bookmarks between documents and I'm
hoping that I don't have to type them all out.

You could try a little macro like this one:

'_______________________________________
Sub TypeOutBookmarkList()

Dim MyBkmk As Bookmark
Dim MyList As String
Dim DocList As Document
Dim CurDocName As String

With ActiveDocument
If .Bookmarks.Count = 0 Then
MsgBox "There are no bookmarks in this document."
Exit Sub
End If

For Each MyBkmk In .Bookmarks
MyList = MyList & MyBkmk.Name & Chr(13)
Next

CurDocName = .Name
End With

Set DocList = Documents.Add

With DocList
.Range.Text = "Here is the list of bookmarks in " _
& CurDocName & ":" & Chr(13) & Chr(13) & MyList
.PrintOut
.Close wdDoNotSaveChanges
End With
End Sub
'_______________________________________

--
Salut!
_______________________________________
Jean-Guy Marcil - Word MVP
(e-mail address removed)
Word MVP site: http://www.word.mvps.org
 
G

Guest

What if I want this macro to list the bookmarks in a new blank doc instead of
printout?

Thanks,
Beth
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top