View Single Post
 
Old 08-07-2022, 04:49 PM
Guessed's Avatar
Guessed Guessed is offline Windows 10 Office 2016
Expert
 
Join Date: Mar 2010
Location: Canberra/Melbourne Australia
Posts: 3,932
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

It stops working at 3.7 because your document doesn't have a 3.6 heading before it. The preceding heading is 3.5. The (very elegant) code is comparing the expected numbers with the hard coded numbers and if the pattern a match is not identified then it leaves it as is.

Once the expected numbers are broken, it won't start working again until you get to the next parent Heading level.
__________________
Andrew Lockton
Chrysalis Design, Melbourne Australia
Reply With Quote