Hello,
Can anyone help me adjust the following code; it is acting on my whole document and not just my selection?
Thanks for any help.Code:Sub FixHyphens() ' ' Macro1 Macro ' Macro recorded 5/16/2003 by xxxxxx ' Selection.Find.ClearFormatting Selection.Find.Replacement.ClearFormatting With Selection.Find .Text = "-" .Replacement.Text = "^~" .Forward = True .Wrap = wdFindAsk .Format = False .MatchCase = False .MatchWholeWord = False .MatchWildcards = False .MatchSoundsLike = False .MatchAllWordForms = False End With Selection.Find.Execute Replace:=wdReplaceAll End Sub



