how to delete blank lines in a document

A

Aleta Floyd

anyway to delete blank lines in a long document without
manually deleting each one? i.e. delete all in a batch/
at one time.
 
S

Suzanne S. Barnhill

If the "blank lines" are empty paragraphs, you can search for ^p^p and
replace with ^p, continuing until you get 0 replacements. Note that this
will not work if the paragraphs are not truly empty (that is, if they
contain any spaces). You'll have better success if you display nonprinting
characters (Ctrl+*) so that you can see what you're dealing with.

If the blank lines are created with Space Before/After, you will need to
modify the paragraph formatting of the relevant style.

--
Suzanne S. Barnhill
Microsoft MVP (Word)
Words into Type
Fairhope, Alabama USA
Word MVP FAQ site: http://www.mvps.org/word
Email cannot be acknowledged; please post all follow-ups to the newsgroup so
all may benefit.
 
M

martinique

You can catch the blank lines that contain spaces or tabs using ^p^w^p as
your search string.
 
G

Graham Mayor

A wildard search for
[^13]{2,}
replace with
^p
will remove all extra empty lines in one pass.

--
<>>< ><<> ><<> <>>< ><<> <>>< <>>< ><<>
Graham Mayor - Word MVP
E-mail (e-mail address removed)
Web site www.gmayor.dsl.pipex.com
Word MVP web site www.mvps.org/word
<>>< ><<> ><<> <>>< ><<> <>>< <>>< ><<>
 

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