remove hidden codes without changing pagination

S

sunlight

When I try to remove the hidden text from the doc, I succeed but it also
takes away all my hard page returns. Is there a way to remove the hidden text
and codes without changing the pagination?
Thanks
 
D

Dave Lett

Hi,

Maybe you can use something like the following:

With Selection.Find
.ClearFormatting
.Text = "[!^m]"
.Wrap = wdFindContinue
.Font.Hidden = True
With .Replacement
.ClearFormatting
.Text = ""
End With
.Execute Replace:=wdReplaceAll
End With


HTH,
Dave
 
Top