Parse bookmarks in a word document

M

Mike Fellows

Hi,

I am trying to parse a word document to get a list of all the bookmarks that
are setup within the document

I need to be able to parse the bookmarks though without knowing the bookmark
name

Thanks in advance

Mike Fellows
 
R

rowe_newsgroups

I don't do much programming with Word so this is more of a guess than a
fact. But if bookmarks is an object you might be able to do something
like this:

<pseudocode>

Dim bm as Word.BookMark

For each bm in ActiveDocument
' do whatever
Next

</pseudocode>

That should get you started.

Thanks,

Seth Rowe
 

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