Need macro to delete blank lines - solved by Onno Karman

M

madiya122

Hi Onno Karman,
This was a very usefull advise. Since this is a one time job and is
very easy, why waste time learning and writing a macro?

Thanks and regards,
Madiya


From: Onno Karman - view profile
Date: Wed, Apr 7 2004 8:53 am
Email: Onno Karman <[email protected]>
Groups: microsoft.public.word
Not yet ratedRating:
show options
Reply | Reply to Author | Forward | Print | Individual Message | Show
original | Report Abuse | Find messages by this author


Hi Charlie,

The code for a line break in Word is ^p.
What you should do is the following:


First: click on the Show/Hide symbol (which looks like a backwards P /
paragraph sign and is positioned in the ) or use the shortcut keys
CTRL SHIFT 8


Then open the "Search and Replace" window (shortcut keys: CTRL H).
In the "Find what:" field, enter this:


^p^p


And in the "Replace with:" field, enter:


^p


Then, click on "Replace All" (or first try it out ofcourse, click on
"Find Next", and see what happens, and then click on "replace all")


You will see that all double line breaks have been replaced by a
single line break.


Of course you could write a macro for this, but I think this is a one
time only "thing".


I hope that this has helped you!


Kind regards,


Onno Karman,
Amsterdam, The Netherlands
 

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