find and replace for deleting blank lines

G

Guest

Hi,

The hospital that I work for has our reports with templated headings where we are suppose to type text below the headings. Some headings are never used and I have had to just manually go up and down through the report and delete these.

I have not figured out an easy way in find or replace to do this. I notice if I "turn on" the view of the paragraph markings there is a little black "square" before each heading. What I'm trying to do is to "search" for all the headings that have "no" test typed below it and delete it. Am I in the right area of Word to do this with the "find and replace" or do I need to do this via another method. I can't figure out what I would put in the "find" part of the little black square and then for it to be able to only go to the headings that have "no" text below it and delete it. Is there a character equation for the "delete" function like there is for paragraph with the ^p?

Any help would be greatly appreciated.

Patti
 
S

Suzanne S. Barnhill

The black square in this case indicates that the paragraph is formatted as
"Keep with next" (which is enabled by default for all Word's built-in
heading styles; see
http://www.mvps.org/word/FAQs/Formatting/NonPrintChars.htm). You can search
for that formatting by clicking on More in the F&R dialog, then Format |
Paragraph, then checking "Keep with next." But it would be more efficient to
search for the particular heading style (Format | Style).

When you find a heading in the given style, the entire paragraph will be
selected, so if it has no text after it, you can press Delete. Close the
Find dialog and use the Find Next button (double arrows) at the bottom of
the vertical scroll bar, and you can zip through the document quickly.

--
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.

Patti said:
Hi,

The hospital that I work for has our reports with templated headings where
we are suppose to type text below the headings. Some headings are never
used and I have had to just manually go up and down through the report and
delete these.
I have not figured out an easy way in find or replace to do this. I
notice if I "turn on" the view of the paragraph markings there is a little
black "square" before each heading. What I'm trying to do is to "search"
for all the headings that have "no" test typed below it and delete it. Am I
in the right area of Word to do this with the "find and replace" or do I
need to do this via another method. I can't figure out what I would put in
the "find" part of the little black square and then for it to be able to
only go to the headings that have "no" text below it and delete it. Is
there a character equation for the "delete" function like there is for
paragraph with the ^p?
 

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

Similar Threads

Using styles 3
Find and Replace 2
Problem with converting styles 12
The Square Black Dot 4
Word The More add-in for Microsoft Word 0
finding Heading 4 18
redlining and cut-n-paste 1
Two different spaces and search order 3

Top