![]() |
|
#1
|
||||
|
||||
![]()
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] |
![]() |
Tags |
headings numeric |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
![]() |
Dr Wu | Word | 4 | 07-15-2018 03:52 AM |
![]() |
cheech1981 | Word | 9 | 01-11-2017 02:14 AM |
Challenging Heading Edit with Find Replace | binar | Word | 10 | 12-23-2012 08:16 PM |
![]() |
ubns | Word VBA | 44 | 09-04-2012 08:17 PM |
![]() |
Hallet | Word | 1 | 05-31-2012 02:37 PM |