Microsoft Office Forums

Go Back   Microsoft Office Forums > >

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #2  
Old 06-27-2016, 05:56 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,187
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

I would have expected the Headings to use outline numbering but if you are having problems then try this variation
Code:
Sub ReplaceNumbers()
  Dim oPara As Paragraph
  Dim r As Range
  For Each oPara In ActiveDocument.Paragraphs()
    Set r = oPara.Range
    If r.ListFormat.ListType = wdListSimpleNumbering And r.Style <> "Heading 1" Then
      r.ListFormat.RemoveNumbers NumberType:=wdNumberParagraph
      r.InsertBefore Text:="**"
    End If
    Set r = Nothing
  Next
End Sub
__________________
Andrew Lockton
Chrysalis Design, Melbourne Australia
Reply With Quote
 



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 04:39 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