![]() |
|
#2
|
||||
|
||||
|
For what you've described, all you need is:
Code:
Sub HeaderApply()
Application.ScreenUpdating = False
With ActiveDocument.Range.Find
.ClearFormatting
.Forward = True
.Format = False
.Wrap = wdFindContinue
.MatchWildcards = False
.Text = "C:\_XREF_ALL\App.2018"
With .Replacement
.ClearFormatting
.Text = "^&"
.Style = wdStyleHeading1
End With
.Execute Replace:=wdReplaceAll
End With
Application.ScreenUpdating = True
End Sub
__________________
Cheers, Paul Edstein [Fmr MS MVP - Word] |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
Select rows w/cells containing given character strings, then sum cell in two other col.
|
LarryHills | Excel | 1 | 02-17-2017 03:55 PM |
| VBA Word Table - Select More than 1 Column at a time - Apply Formatting | jc491 | Word VBA | 12 | 09-24-2015 06:03 AM |
TOC showing both Heading1 and Page Number
|
FormatAdmin | Word | 3 | 03-04-2014 01:20 PM |
reference previous heading1
|
fehenry | Word | 5 | 04-20-2012 01:54 AM |
| Heading1 does not convert to Kop1 | boesh | Word | 8 | 07-02-2010 05:13 AM |