I want to be able to read using code the numbers that Word assigns to
headings.
e.g. Say I have the level 2 heading
2.7 Age Profile
I want to be able to capture the 2.7
Code like the following
If myParagraph.Format.Style = "Heading 2" Then
Debug.Print myParagraph.Range.Text
End If
Just prints out "Age Profile"
Any hints very much appreciated
Rod
Stefan Blom - 25 Sep 2007 11:02 GMT
See http://word.mvps.org/faqs/numbering/liststring.htm.

Signature
Stefan Blom
Microsoft Word MVP
>I want to be able to read using code the numbers that Word assigns to
>headings.
[quoted text clipped - 16 lines]
>
> Rod
Rod - 25 Sep 2007 11:37 GMT
Thanks, this is good.
> See http://word.mvps.org/faqs/numbering/liststring.htm.
>
[quoted text clipped - 18 lines]
>>
>> Rod
Stefan Blom - 25 Sep 2007 11:49 GMT
Glad I could help.

Signature
Stefan Blom
Microsoft Word MVP
> Thanks, this is good.
>
[quoted text clipped - 20 lines]
>>>
>>> Rod