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
|