C
Carrie Downes
I'm trying to create a basic editorial macro that will search for text in
small caps and replace it with regular text in "Title Case" (first letter of
each word selected is capitalized). Here's what I have so far, which appears
to clear the small caps but doesn't toggle the case properly:
Selection.Find.ClearFormatting
Selection.Find.Font.SmallCaps = True
Selection.Range.Case = wdNextCase
Selection.Find.Replacement.ClearFormatting
Selection.Find.Replacement.Font.SmallCaps = False
With Selection.Find
.Text = ""
.Replacement.Text = ""
.Forward = True
.Wrap = wdFindContinue
.format = True
.MatchCase = False
.MatchWholeWord = False
.MatchWildcards = False
.MatchSoundsLike = False
.MatchAllWordForms = False
End With
Selection.Find.Execute Replace:=wdReplaceAll
Is there a way to modify this so that I can specifically have it changed to
Title Case? Help is much appreciated! Thanks in advance.
small caps and replace it with regular text in "Title Case" (first letter of
each word selected is capitalized). Here's what I have so far, which appears
to clear the small caps but doesn't toggle the case properly:
Selection.Find.ClearFormatting
Selection.Find.Font.SmallCaps = True
Selection.Range.Case = wdNextCase
Selection.Find.Replacement.ClearFormatting
Selection.Find.Replacement.Font.SmallCaps = False
With Selection.Find
.Text = ""
.Replacement.Text = ""
.Forward = True
.Wrap = wdFindContinue
.format = True
.MatchCase = False
.MatchWholeWord = False
.MatchWildcards = False
.MatchSoundsLike = False
.MatchAllWordForms = False
End With
Selection.Find.Execute Replace:=wdReplaceAll
Is there a way to modify this so that I can specifically have it changed to
Title Case? Help is much appreciated! Thanks in advance.