469,945 Members | 1,813 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,945 developers. It's quick & easy.

Parse bookmarks in a word document

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
Oct 4 '06 #1
2 1389
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

Mike Fellows wrote:
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
Oct 4 '06 #2
Cheers for that

wasnt aware of word.bookmark

cheers

Mike

"rowe_newsgroups" <ro********@yahoo.comwrote in message
news:11**********************@b28g2000cwb.googlegr oups.com...
>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

Mike Fellows wrote:
>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

Oct 9 '06 #3

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

1 post views Thread by Jim | last post: by
reply views Thread by Aytan | last post: by
1 post views Thread by electrixnow | last post: by
1 post views Thread by electrixnow | last post: by
3 posts views Thread by andreas | last post: by
2 posts views Thread by Alan T | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.