![]() |
|
#6
|
||||
|
||||
|
Hi Gerry,
I was intentionally inserting the "</case>" into the end of the heading paragraph, rather than into the start of the one after it; otherwise, I'd have just used .InsertAfter without reference to .Characters.Last. I also deliberately implement a loop in anticipation that the OP might want to add some other content in or around either or both of the "<case>" and "</case>" strings (e.g. the heading level and/or the index # of that heading). It would actually be more efficient to use ReplaceAll for what has been specified.
__________________
Cheers, Paul Edstein [Fmr MS MVP - Word] |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
How to add space between heading number and heading text
|
Dr Wu | Word | 4 | 07-15-2018 03:52 AM |
How to Restore Heading 1, Heading 2, etc. within a Word Document
|
cheech1981 | Word | 9 | 01-11-2017 02:14 AM |
Heading title before heading number
|
johnor999 | Word | 4 | 12-06-2013 12:39 AM |
| Control the size of space between heading number and heading text | Dr Wu | Word | 1 | 07-17-2013 12:24 PM |
Styles: Heading 4 stuck at same heading number
|
Hallet | Word | 1 | 05-31-2012 02:37 PM |