View Single Post
 
Old 05-05-2013, 04:16 PM
macropod's Avatar
macropod macropod is offline Windows 7 64bit Office 2010 32bit
Administrator
 
Join Date: Dec 2010
Location: Canberra, Australia
Posts: 22,363
macropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond repute
Default

You can do this with a fairly simple macro:
Code:
Sub Demo()
Application.ScreenUpdating = False
Dim Prgrph As Paragraph, i As Long, Rng As Range
For Each Prgrph In ActiveDocument.Paragraphs
  If Prgrph.Style Like "Heading #" Then
    i = i + 1
    Set Rng = Prgrph.Range
    Rng.End = Rng.End - 1
    Rng.Text = 10000 + i
  End If
Next
Application.ScreenUpdating = True
End Sub
__________________
Cheers,
Paul Edstein
[Fmr MS MVP - Word]
Reply With Quote