You aren't being clear about what you want - largely because this is potentially a lot more complicated than you might have supposed.
An Outline Level is a number between 1 and 10 which is an attribute applied to each paragraph. Typically the outline levels correspond with the Heading styles from 1-9 with 10 being used for just about everything else. The numbers you highlighted in your screen grabs are NOT outline levels. They are either a paragraph number (or ListStrings in vba-speak) or perhaps are hard-coded content in a paragraph. Also, those numbers could be on Headings or other paragraph types.
Because a single tracked revision could include multiple paragraphs which can span multiple numbered and unnumbered paragraphs you need to be very clear as to what you want to happen. Do we just look at the first paragraph? If that isn't numbered, do we step backwards to find the nearest preceding number (or outline level)? Or do we step backwards to find the nearest preceding heading.
__________________
Andrew Lockton
Chrysalis Design, Melbourne Australia
|