Getting a handle on Heading Numberings.

R

Rod

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
 

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