Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 05-31-2021, 04:19 PM
Guessed's Avatar
Guessed Guessed is offline Restarting Paragraph/Style Numbering on Each New Page of a Document Windows 10 Restarting Paragraph/Style Numbering on Each New Page of a Document 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
  #2  
Old 06-01-2021, 08:48 AM
Matt C's Avatar
Matt C Matt C is offline Restarting Paragraph/Style Numbering on Each New Page of a Document Windows 10 Restarting Paragraph/Style Numbering on Each New Page of a Document Office 97-2003
Advanced Beginner
Restarting Paragraph/Style Numbering on Each New Page of a Document
 
Join Date: May 2021
Location: London, UK
Posts: 30
Matt C is on a distinguished road
Default

Quote:
Originally Posted by Guessed View Post
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.
That seems to tally with my testing. The code does what is needed and I can flag the potential formatting issue in the Message Box text. It's not a macro that needs to be used frequently while the document's being written. Thanks for the help.
Reply With Quote
Reply



Similar Threads
Thread Thread Starter Forum Replies Last Post
Restarting Paragraph/Style Numbering on Each New Page of a Document Restarting page numbering only if Section begins with Heading 1 kaurp Word VBA 5 11-02-2017 04:36 AM
How can I define a numbering style restarting numbering after an outline by default jklocker Word 1 09-26-2017 05:11 AM
Restarting Paragraph/Style Numbering on Each New Page of a Document RESTARTING page numbering in a sectioned document. jp91306 Word 3 01-01-2016 12:27 AM
Restarting Paragraph/Style Numbering on Each New Page of a Document Numbering not restarting at 1 between list styles cotjoey Word 11 09-21-2014 07:54 AM
Restarting Paragraph/Style Numbering on Each New Page of a Document reset numbering to 1 by paragraph Style Helix86 Word 5 08-07-2013 10:48 PM

Other Forums: Access Forums

All times are GMT -7. The time now is 07:54 AM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions Inc.
Search Engine Optimisation provided by DragonByte SEO (Lite) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
MSOfficeForums.com is not affiliated with Microsoft