![]() |
|
|||||||
|
|
Thread Tools | Display Modes |
|
#4
|
||||
|
||||
|
You could use a macro like:
Code:
Sub Demo()
Application.ScreenUpdating = False
Dim Rng As Range
With ActiveDocument.Range
With .Find
.ClearFormatting
.Replacement.ClearFormatting
.Text = "Nutrition"
.Replacement.Text = ""
.Forward = True
.Format = True
.Style = "Heading 4"
.Wrap = wdFindStop
.MatchCase = True
.MatchWholeWord = False
.MatchWildcards = False
.MatchSoundsLike = False
.MatchAllWordForms = False
.Execute
End With
Do While .Find.Found
Set Rng = .Duplicate
Set Rng = Rng.GoTo(What:=wdGoToBookmark, Name:="\HeadingLevel")
Rng.Delete
.Collapse wdCollapseEnd
.Find.Execute
Loop
End With
Application.ScreenUpdating = True
End Sub
For Mac macro installation & usage instructions, see: https://wordmvp.com/Mac/InstallMacro.html
__________________
Cheers, Paul Edstein [Fmr MS MVP - Word] |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Setting default heading levels on the navigation plane | MattRNR | Word | 0 | 01-04-2016 04:41 AM |
I can't change the font of Heading 4 in my table of contents
|
hadigh84 | Word | 1 | 07-22-2015 08:56 PM |
| How to remove HEading 4 from the Table Of Contents | elelont3 | Word | 2 | 01-17-2015 06:42 AM |
| Navigation pane Show.Heading level x only | NobodysPerfect | Word VBA | 11 | 05-09-2014 05:26 AM |
| How to have this Heading – Table of contents style? | Jamal NUMAN | Word | 0 | 01-13-2011 06:02 PM |