Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 06-28-2016, 06:18 PM
Guessed's Avatar
Guessed Guessed is offline Replacing numbering except for headings Windows 10 Replacing numbering except for headings Office 2013
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

As I said, the Headings should be using outline numbering if you want the numbers to relate to each other. If this was the case, the original code would have ignored the headings numbers.



Failing that, there are two other potential ways to sort the headings from the rest. Try either of the following in place of the If line:

If r.ListFormat.ListType = wdListSimpleNumbering And Left(r.Style,7) <> "Heading" Then

If r.ListFormat.ListType = wdListSimpleNumbering And r.ParagraphFormat.OutlineLevel < 10 Then
__________________
Andrew Lockton
Chrysalis Design, Melbourne Australia
Reply With Quote
Reply



Similar Threads
Thread Thread Starter Forum Replies Last Post
Replacing numbering except for headings Numbering a part of the headings daanhaeyen Word 3 09-28-2015 12:15 PM
List & headings & numbering problems Vegas Word 2 02-24-2015 03:01 AM
Headings - Levelled Numbering pgrant Word 2 11-28-2013 04:00 PM
Headings and numbering Mart. Word 1 04-05-2012 12:02 PM
Word headings not numbering correctly? rbilleaud Word 4 08-03-2011 08:46 AM

Other Forums: Access Forums

All times are GMT -7. The time now is 10:53 PM.


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