![]() |
|
|
|
#1
|
||||
|
||||
|
Outline levels are a paragraph setting which Word locks for the built-in "Heading #" styles. You can also assign them to other styles as well. The 'Schedule Level #' styles are going to be custom styles which could have an outline level assigned to them. If you did that before running the macro it would work in the same way.
There are other ways to keep track of the number level of the preceding heading. I just used OutlineLevel because your original sample used the built-in Headings. You could also harvest the value that comes where you have put * in "Schedule Level *" eg iLev = CInt(Split(sStyName," ")(2))
__________________
Andrew Lockton Chrysalis Design, Melbourne Australia |
|
#2
|
|||
|
|||
|
Thank you so much Andrew that line of code worked perfectly for the schedule levels
|
|
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
Help Please, IF with Selected Paragraph Format & Left Indent with First Line Indent
|
Cendrinne | Word VBA | 3 | 03-06-2022 04:42 AM |
| How to indent first line from second paragraph of every heading? | indra059 | Word | 3 | 02-22-2022 08:20 PM |
Creating buttons for individual paragraph styles on a ribbon tab - not using Quick Styles
|
T7Training | Word | 11 | 12-22-2019 12:16 PM |
| Using numbered list style, how to indent text immediately following heading to match heading indent? | SpechtacularDave | Word | 3 | 09-25-2019 01:22 PM |
Styles: Heading 4 stuck at same heading number
|
Hallet | Word | 1 | 05-31-2012 02:37 PM |