Thanks, Charles. Unfortunately, the TOC-referenced style here must be a part of a larger paragraph, since that is the near-universal preference in modern contracts. Also unfortunately, I can't stand style separators and the lawyers I work with hate them worse because hidden characters like that they make editing difficult (that is, selecting the entire paragraph with triple click only selects the text on that side of the separator, which contradicts the typically understood behavior).
The only solutions I've found to this are (1) enabling linked styles and then applying the appropriate Heading style to the caption of the section, which is pretty cumbersome, or (2) using TOC entries, which is extremely cumbersome. I only ever use method (1).
Until now, I've been manually creating my styles and then manually applying the appropriate heading to the caption. But I'd like to do that programmatically, but VBA is not cooperating in applying the heading style to just a portion of the paragraph as a linked style, hence my question.
Any ideas>
|