Getting the outline number via VBA

G

Gary Barnes

Hi,

I am writting a VBA program that needs to find a bookmark in a word document
and then store the name of the bookmark and the number of the clause it was
found under.

For example if the heading is "4.3.2 Heading 3" then I want some code that
will return the "4.3.2" portion of this to me.

I can locate the bookmarks and the heading paragraph that preceeds them and
I can determine what outline level the heading is but I can't seem to get
the actual number. The clause numbers are all done using standard word
headings i.e. "Heading 1" etc and the outline numbering format.

Any and all ideas are welcome


Thanks

Gary Barnes
 

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