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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top