find/replace multiple TABS

G

Guest

I successfully used Graham Mayors example to remove multiple blank spaces
from documents using wildcards but I can't get it work trying to find
multiple TABS or multiple PARAGRAPH codes
 
P

Pat Garard

G'Day GKW,

Use the two-character code '^t' to represent a Tab
'^p' to represent a Paragraph mark.
 
G

Graham Mayor

For multiple paragraph marks a wildcard a replace of
^13{1,}
with
^p
should work leaving just one.

--
<>>< ><<> ><<> <>>< ><<> <>>< <>><<>
Graham Mayor - Word MVP

My web site www.gmayor.com

<>>< ><<> ><<> <>>< ><<> <>>< <>><<>
 
G

Guest

thanks, is there a way to do this just for selected text instead of the whole
document
 
G

Graham Mayor

Select the text and run the find and replace - if you are talking about a
macro, change the wrap option to = wdFindStop

--
<>>< ><<> ><<> <>>< ><<> <>>< <>><<>
Graham Mayor - Word MVP

My web site www.gmayor.com

<>>< ><<> ><<> <>>< ><<> <>>< <>><<>
 

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