View Single Post
  #10   Report Post  
Posted to microsoft.public.word.docmanagement
JPRENDER
 
Posts: n/a
Default How can I automatically eliminate all blank lines from a word

Charles

Thanks so much, it worked doc pgs went from 348 to 100. That is a huge step
in the right direction and will help me out a great deal.

Again, thank you



"Charles Kenyon" wrote:

That is because a page break does just that. It starts a new page. It is not
a blank line.

Manual page breaks should be avoided for all sorts of reasons. You've just
found one.

Try replacing them all with paragraphs and then running the replace two
paragraphs with one replacement again.

Replace ^m with ^p.

I hope you are working with a copy.

--
Charles Kenyon

Word New User FAQ & Web Directory: http://addbalance.com/word

Intermediate User's Guide to Microsoft Word (supplemented version of
Microsoft's Legal Users' Guide) http://addbalance.com/usersguide

See also the MVP FAQ: http://word.mvps.org/FAQs/ which is awesome!
--------- --------- --------- --------- --------- ---------
This message is posted to a newsgroup. Please post replies
and questions to the newsgroup so that others can learn
from my ignorance and your wisdom.


"JPRENDER" wrote in message
...
Initially no...but I just tried on a 348 pg doc and following your
instructions until I had no more replacements reduced the doc down to 317
pgs.

However there are still large empty/blank sections in each page under the
"---------- Page Break--------" that are not effected by the process you
provided. These sections do not show any data element such line breaks or
paragraph breaks

Is there a method to eliminate these sections automatically. Alsi is there
a
way to write macro to handled both processes to fully automate the
formatting
of these docs

"Charles Kenyon" wrote:

Did you try repeating it until you get no replacements?
--
Charles Kenyon

Word New User FAQ & Web Directory: http://addbalance.com/word

Intermediate User's Guide to Microsoft Word (supplemented version of
Microsoft's Legal Users' Guide) http://addbalance.com/usersguide

See also the MVP FAQ: http://word.mvps.org/FAQs/ which is awesome!
--------- --------- --------- --------- --------- ---------
This message is posted to a newsgroup. Please post replies
and questions to the newsgroup so that others can learn
from my ignorance and your wisdom.


"JPRENDER" wrote in message
...
Thanks for your response. Tried your suggestion though Word indicated
that
over 6500+ change were made, my doc was only reduced by 2 pages.

Is there another possible solution?

"Jezebel" wrote:

Use Find and Replace: Find ^p^p (two consecutive paragraph marks)
and
replace with ^p (one paragraph mark). Use Replace All repeatedly
until
you stop finding any more.

You might also need to deal with lines that contain only spaces (which
the
above won't match).


"JPRENDER" wrote in message
...
I have a 900+ page document and more than half of contains blank
lines.
Is
there a way to automatically eliminate on the blank lines in the
document?