is there code which will clean up a document

J

jvoortman

is there code which will clean up a document?
I have a word document with numerous sentences, and words,
that are on lines one down from where they are supposed to
be. I end up placing the curser in front of the problem
words, and then back spacing until it moves up to the
precious line and only one space away from the previous
word. is it something to do with justify?
example:

4. Twenty years ago, a plane is flying at 20,000 feet over
Germany. If
you will recall, Germany at the time was politically
divided into
West Germany and East Germany.

Anyway, during the flight, TWO of the engines fail. The
pilot,
realising that the last remaining engine is also failing,
decides
on a crash landing procedure. Unfortunately the engine
fails before
he has time and the plane crashes smack in the middle of
"no man's
land" between East Germany and West Germany. Where would
you bury
the survivors? East Germany or West Germany or in "no
man's
land?"
 
T

Tsu Dho Nimh

jvoortman said:
is there code which will clean up a document?
I have a word document with numerous sentences, and words,
that are on lines one down from where they are supposed to
be.

Do you have hard returns in there? If so, this works:

1 Search and replace all instances of TWO consecutive paragraph
marks with a nonsense phrase (I use QRX).

2 Then search and replace all single paragraph marks with a space

3 Then search and replace all QRX with a paragraph mark.

You now have paragraphs with no blank lines between them.

4. Twenty years ago, a plane is flying at 20,000 feet over
Germany. If
you will recall, Germany at the time was politically
divided into
West Germany and East Germany.

Anyway, during the flight, TWO of the engines fail. The
pilot,
realising that the last remaining engine is also failing,
decides
on a crash landing procedure. Unfortunately the engine
fails before
he has time and the plane crashes smack in the middle of
"no man's
land" between East Germany and West Germany. Where would
you bury
the survivors? East Germany or West Germany or in "no
man's
land?"


Tsu Dho Nimh
 

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