S
supersub15
Hi there,
I'm trying to create a macro that would find an empty paragraph mark,
followed by a section break, and replace it with just the section
break.
With Selection.Find
.Text = "(^13)(^13^m)"
.Replacement.Text = "\2"
.Forward = True
.Wrap = wdFindContinue
.Format = False
.MatchCase = False
.MatchWholeWord = False
.MatchAllWordForms = False
.MatchSoundsLike = False
.MatchWildcards = True
.Execute Replace:=wdReplaceAll
End With
The macro is able to find the string alright, but it won't execute the
replacement. Is my code alright?
Thanks
Carlos
I'm trying to create a macro that would find an empty paragraph mark,
followed by a section break, and replace it with just the section
break.
With Selection.Find
.Text = "(^13)(^13^m)"
.Replacement.Text = "\2"
.Forward = True
.Wrap = wdFindContinue
.Format = False
.MatchCase = False
.MatchWholeWord = False
.MatchAllWordForms = False
.MatchSoundsLike = False
.MatchWildcards = True
.Execute Replace:=wdReplaceAll
End With
The macro is able to find the string alright, but it won't execute the
replacement. Is my code alright?
Thanks
Carlos