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
 
Top