View Single Post
 
Old 09-09-2017, 06:44 PM
Guessed's Avatar
Guessed Guessed is online now Windows 10 Office 2013
Expert
 
Join Date: Mar 2010
Location: Canberra/Melbourne Australia
Posts: 4,001
Guessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant future
Default

The macro uses Outline Levels which is a paragraph level format option associated with a style. Have you tried changing the Outline Levels of the styles involved?

In current versions of Word, it appears we can no longer change the outline level of the "Heading x" series of styles but there is nothing to stop you changing the 'Heading 3 TOC" style to either have or not have an outline level eg
Code:
ActiveDocument.Styles("Heading 3 TOC").ParagraphFormat.OutlineLevel = wdOutlineLevel1
'or
ActiveDocument.Styles("Heading 3 TOC").ParagraphFormat.OutlineLevel = wdOutlineLevelBodyText
__________________
Andrew Lockton
Chrysalis Design, Melbourne Australia
Reply With Quote