Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Word / Programming / May 2006

Tip: Looking for answers? Try searching our database.

remove hidden codes without changing pagination

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
sunlight - 25 May 2006 20:03 GMT
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
Dave Lett - 25 May 2006 21:16 GMT
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

> 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
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.