Re: Determining Para. Level and Formatted Number

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance

From: Jim Dahlstrom (anonymous_at_discussions.microsoft.com)
Date: 02/24/04


Date: Tue, 24 Feb 2004 08:23:56 -0800

Steve,

Thanks again.
(OK - I'm starting to be a pain...!!)
Your response sounds like it is my solution. I have spent
the morning trying to translate it to code, but am afraid
that I am too much of a novice to do so.

Can you try one more time with a code example?

Scenario - One word selected in the second sequential
level 4 outlined numbered paragraph under the level 3
outlined numbered paragraph, 2.1.2 -- need to identify and
return the formatted paragraph number, i.e. 2.1.2.2

Thanks for your patience and help.

Jim
>-----Original Message-----
>G'day "Jim Dahlstrom" <jdahl@atlantic.net>,
>
>The list template properties that are attached to the
list paragraph.
>I normally name all LTs then crossmatch from the .para
stuff to the
>activedocument.littemplates stuff. The LT.ListLevel(n)
then has ALL
>the juicy info.
>
>
>Steve Hudson - Word Heretic
>Want a hyperlinked index? S/W R&D? See WordHeretic.com
>
>steve from wordheretic.com (Email replies require payment)
>
>
>Jim Dahlstrom reckoned:
>
>>Steve,
>>
>>Thanks for the response.
>>
>>I need to go one step further though. your response
>>provided the springboard to return the outline level
>>number using -
>>
>>Selection.Range.ListFormat.ListLevelNumber
>>
>>I have been using this type of line to return the
outline
>>formatted paragraph number, i.e. a selection in the
third
>>sequential Level 4 para. under para. 1.1.2 should return
>>1.1.2.3, but not quite finding the right code.
>>
>>What am I missing??
>>
>>Jim
>>>-----Original Message-----
>>>G'day "Jim D." <jdahl@atlantic.net>,
>>>
>>>ActiveDocument.Paragraphs
>>(1).Range.ListFormat.ListLevelNumber
>>>
>>>Steve Hudson - Word Heretic
>>>Want a hyperlinked index? S/W R&D? See WordHeretic.com
>>>
>>>steve from wordheretic.com (Email replies require
payment)
>>>
>>>
>>>Jim D. reckoned:
>>>
>>>>Hi. Thanks to all that answer.
>>>>
>>>>Once a macro has found and selected text in an outline
>>>>numbered document (which I can do) I need to determine
>>the
>>>>outline number for the para. A complicating factor is
>>>>that below the fouth level the scheme is tied
>>to "Restart
>>>>numbering after" the next higher level but changes the
>>>>numbering pattern.
>>>>
>>>>Para numbering being used:
>>>>Level 1 = 1.0, Level 2 = 1.1, Level 3 = 1.1.1 Level 4
=
>>>>1.1.1.1, Level 5 = A., Level 6 = 1. and Level 7 = a.
>>>>
>>>>If the selection is below the fourth level I need to
>>build
>>>>the para. path number, e.g. 3.2.4.1 A. 3. c.
>>>>
>>>>Please help.
>>>>
>>>>Thanks,
>>>>Jim D.
>>>
>>>.
>>>
>
>.
>



Relevant Pages

  • Re: English forwards teach ABs a lesson!
    ... I only included the paragraph I was responding to and it in no ... competition and are not capable of beating a team that appears to aim ... You then mangled and misrepresented my post in response when you ... valid reason to downgrade the status of the competition, ...
    (rec.sport.rugby.union)
  • Re: Mass Transit
    ... Given that it is usual posting style to respond ... You also do not respond to every paragraph of every message. ... thing and requested a response to that point. ... That is pretty damned significant in ...
    (rec.arts.sf.fandom)
  • Re: More on caching and logging
    ... with that paragraph I didn't respond to. ... in your response to me while making it look as if *I* had written it. ... What purpose did it serve by repeating it at all? ... Apple has done or will do in this regard when someone else in the group ...
    (comp.sys.mac.system)
  • Re: Remove Page Break
    ... In my previous response I described how to delete manual page ... Page breaks can also be paragraph formatting. ... "Stefan Blom" skrev i meddelandet ...
    (microsoft.public.word.pagelayout)
  • Re: Word 2003 (SP1) crashes
    ... if you are including the last paragraph in any section in your copy - ... Steve Hudson - Word Heretic ... steve from wordheretic.com (Email replies require payment) ...
    (microsoft.public.word.vba.general)