A
Angie M.
Hello,
Is there a way to replace paragraph marks formatted with the Hidden font
attribute with Style Separators? Here's my best try:
Selection.Find.ClearFormatting
Selection.Find.Replacement.ClearFormatting
With Selection.Find
.Text = "^p"
.Font.Hidden = True
.Replacement.Application.Selection.InsertStyleSeparator
.Forward = True
.Wrap = wdFindContinue
.Format = True
.MatchCase = False
.MatchWholeWord = False
.MatchWildcards = False
.MatchSoundsLike = False
.MatchAllWordForms = False
End With
Selection.Find.Execute Replace:=wdReplaceAll
It find the hidden paragraph mark but doesn't insert the Style Seperator. I
couldn't figure out how else to do it, since the style sep is only available
from the selection object.
Thanks for your help.
Is there a way to replace paragraph marks formatted with the Hidden font
attribute with Style Separators? Here's my best try:
Selection.Find.ClearFormatting
Selection.Find.Replacement.ClearFormatting
With Selection.Find
.Text = "^p"
.Font.Hidden = True
.Replacement.Application.Selection.InsertStyleSeparator
.Forward = True
.Wrap = wdFindContinue
.Format = True
.MatchCase = False
.MatchWholeWord = False
.MatchWildcards = False
.MatchSoundsLike = False
.MatchAllWordForms = False
End With
Selection.Find.Execute Replace:=wdReplaceAll
It find the hidden paragraph mark but doesn't insert the Style Seperator. I
couldn't figure out how else to do it, since the style sep is only available
from the selection object.
Thanks for your help.