john
Thu Sep 07 15:17:58 CDT 2006
Hi Jean,
Thanks for your help. Further, I'd like to find a particular numbering like
1.1 or 1.2 in TOC below Part II Test Cases
then get the name after the number.
For example in TOC:
Table Of Contents
Part I Background Information. 4
1 Overview of Feature or System under Test 4
2 Scope of Test 4
3 Assumptions and Constraints 4
4 Resources Requirements 5
4.1 Skill Requirements 5
4.2 Hardware Requirements 5
4.3 Software Requirements 5
Part II Test Cases 8
1 Add 8
2 Move 11
3 Copy 13
4 Shortcut 15
I want to find number 1 name(=Add), number 2 name(=Move) etc... and store it
in variable. Would you know how to do that?
Thanks
"Jean-Guy Marcil" <NoSpam@LeaveMeAlone> wrote in message
news:%23FURiKr0GHA.1268@TK2MSFTNGP02.phx.gbl...
> john smith was telling us:
> john smith nous racontait que :
>
>> Yeah, I'm sorry about my terms here. It is a paragraph with numbering
>> involved. I just want to get the name there after the number.
>>
>> Would you know how to do that?
>
> When you use AutoNumbering, the number itself is not part of the paragraph
> range, so you can use something like this (Which removes the ¶ from the
> range):
>
> Dim rgePara As Range
> Dim strParaText As String
>
> Set rgePara = Selection.Paragraphs(1).Range
> With rgePara
> .MoveEnd wdCharacter, -1
> strParaText = .Text
> End With
>
> --
> Salut!
> _______________________________________
> Jean-Guy Marcil - Word MVP
> jmarcilREMOVE@CAPSsympatico.caTHISTOO
> Word MVP site:
http://www.word.mvps.org
>