Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Word / Programming / September 2007

Tip: Looking for answers? Try searching our database.

Getting a handle on Heading Numberings.

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Rod - 25 Sep 2007 10:09 GMT
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
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.