View Single Post
 
Old 08-01-2018, 09:51 AM
Charles Kenyon Charles Kenyon is offline Windows 10 Office 2013
Moderator
 
Join Date: Mar 2012
Location: Sun Prairie, Wisconsin
Posts: 9,533
Charles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant future
Default

You do not need the Select All.


You really should be using styles for your formatting. You would find it a lot simpler.


The recorder does not handle everything, by any means.


This should get you started:


Code:
Sub Macro1()
'
' Macro1 Macro
'
'
    Selection.Find.ClearFormatting
    Selection.Find.Replacement.ClearFormatting
    With Selection.Find
        .Text = ""
        .Font.Name = "Garamond"
        .Replacement.Text = ""
        .Replacement.Font.Name = "Arial Narrow"
    End With
    Selection.Find.Execute Replace:=wdReplaceAll
End Sub

Last edited by Charles Kenyon; 08-02-2018 at 05:26 AM.
Reply With Quote