![]() |
|
#2
|
|||
|
|||
|
Mr Bill,
This is a freebie, but this also isn't a code writing service and you should make some attempt before asking for the solution on a platter. Code:
Sub ScratchMacro()
'A basic Word macro coded by Greg Maxey
Dim oRng As Range
Set oRng = ActiveDocument.Range
With oRng.Find
.Text = "Chapter [0-9]@"
.MatchWildcards = True
While .Execute
oRng.Move wdParagraph, 2
oRng.Paragraphs(1).Style = "Normal" 'You should create some named style for your first paragraphs and replace "Normal" with it.
oRng.Collapse wdCollapseEnd
Wend
End With
lbl_Exit:
Exit Sub
End Sub
|
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Chapter page references in paragraphs | kenking | Word | 12 | 02-07-2020 03:33 PM |
| Adding chapter or section numbers to 'Page Number' | JStephens3 | Word | 2 | 07-02-2019 01:45 PM |
Footer: chapter and section names
|
tropaj | Word | 7 | 05-22-2019 03:56 PM |
| Need "Section 1" numbering which is followed by 1.1 Chapter titles and 1.2.3 subs | xmlgirl | Word | 1 | 02-26-2014 12:31 AM |
| using odd-Even chapter footers with page number and chapter titles | Fossils13 | Word | 0 | 07-17-2010 06:49 AM |