Home All Groups Group Topic Archive Search About

Parse bookmarks in a word document

Author
4 Oct 2006 12:10 PM
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

Author
4 Oct 2006 1:51 PM
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

Mike Fellows wrote:
Show quoteHide quote
> 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
Author
9 Oct 2006 1:09 PM
Mike Fellows
Cheers for that

wasnt aware of word.bookmark

cheers

Mike

Show quoteHide quote
"rowe_newsgroups" <rowe_em***@yahoo.com> wrote in message
news:1159969882.424985.266320@b28g2000cwb.googlegroups.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
>