Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 11-01-2016, 07:43 AM
CN13579 CN13579 is offline Restarting numbered lists in each Heading section with VBA Windows 7 64bit Restarting numbered lists in each Heading section with VBA Office 2010 32bit
Novice
Restarting numbered lists in each Heading section with VBA
 
Join Date: Nov 2016
Posts: 2
CN13579 is on a distinguished road
Default Restarting numbered lists in each Heading section with VBA

I have some Word 2010 documents that are automatically generated from Robohelp. The documents have different subsections at different Heading levels, and most sections include numbered lists using the same style: List Number. The numbering is continued from the previous section in each subsequent section instead of restarting at 1. As there are many sections that would need to be manually reset each time the documents are generated, it would be incredibly helpful to have this automated. Is there a way to do this with VBA?



Thanks.
Reply With Quote
  #2  
Old 11-01-2016, 05:15 PM
Guessed's Avatar
Guessed Guessed is offline Restarting numbered lists in each Heading section with VBA Windows 10 Restarting numbered lists in each Heading section with VBA Office 2013
Expert
 
Join Date: Mar 2010
Location: Canberra/Melbourne Australia
Posts: 4,159
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

Yes but we need to know what styles would be considered to be in the same list. Eg if I have paragraphs like this:
1. List Paragraph
1.1 List Paragraph 2
List Continue
Picture
2. List Paragraph - is this a new list or a continuation of the previous list.

You would be better advised to handle this WITHOUT macros by setting up your styles in a particular way. For instance, if the outline list effectively has a reset style linked to level one and then all the outline numbered styles start at level two then you just need to ensure that the level one style makes at least one appearance between each separate list.
__________________
Andrew Lockton
Chrysalis Design, Melbourne Australia
Reply With Quote
  #3  
Old 11-02-2016, 11:54 AM
CN13579 CN13579 is offline Restarting numbered lists in each Heading section with VBA Windows 7 64bit Restarting numbered lists in each Heading section with VBA Office 2010 32bit
Novice
Restarting numbered lists in each Heading section with VBA
 
Join Date: Nov 2016
Posts: 2
CN13579 is on a distinguished road
Default

You are correct. I was able to fix this by editing the Multi-level list style. Thanks.
Reply With Quote
Reply

Tags
numbered lists, restart, vba



Similar Threads
Thread Thread Starter Forum Replies Last Post
Restarting numbered lists in each Heading section with VBA Restarting page numbering only if Section begins with Heading 1 kaurp Word VBA 5 11-02-2017 04:36 AM
Restarting numbered lists in each Heading section with VBA Changing a Section Heading to an Appendix Heading stardazy Word 2 11-24-2015 01:04 PM
Numbered Lists jburtis Word 1 04-07-2012 02:42 PM
Numbered lists, even numbers only Mnementh Word 3 05-10-2010 03:31 AM
Restarting numbered lists in each Heading section with VBA Outlining/Numbered Lists eliz.bell Word 2 11-04-2009 06:33 PM

Other Forums: Access Forums

All times are GMT -7. The time now is 03:06 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