View Single Post
 
Old 05-31-2021, 04:19 PM
Guessed's Avatar
Guessed Guessed is offline Windows 10 Office 2016
Expert
 
Join Date: Mar 2010
Location: Canberra/Melbourne Australia
Posts: 4,176
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

Unfortunately, restarting the number IS a local format setting. That is why I reset the paragraph format to remove any already restarted paragraphs before looking for the 'current' start of each page.

I'm not sure what is going on with your italicised whole paragraph (I would expect that to be a font atttribute rather than a paragraph format) but there is a known behaviour where if more than half the paragraph is formatted one way then the whole paragraph is affected.

If the reset is an issue, you can slow the macro down by disabling the full doc reset and add an Else on the innermost If section to continue the numbers if they aren't the first instance on the page. This means you reset every instance individually at the expense of speed - which might not bother you.
__________________
Andrew Lockton
Chrysalis Design, Melbourne Australia
Reply With Quote