Let's assume that she also pressed Enter at the end of each verse of the
poem. It would really be better for each verse to end in a line break
instead (Shift+Enter) so that each stanza is a single paragraph. So start by
using Find and Replace to replace ^p (a paragraph break) with ^l (a line
break--that's a lowercase L, by the way).
Let's assume that she also pressed Enter twice between stanzas of a single
poem, so replace ^l^l with ^p. That will already have reduced the extra,
empty paragraphs between poems by half (because each one was replace with a
line break, and then every pair of line breaks was replaced with a single
paragraph break).
I'd be inclined to apply "Page break before" formatting to the first stanza
of each poem instead of using a manual page break, and if each poem is a
single stanza, then you should definitely do that, because you can then
search for ^p^p and replace with nothing until you don't have any empty
paragraphs left.
But if some poems have more than one stanza, then you'll need to be
trickier. You'll need to search for two *or more* paragraph marks in a row
and replace with a page break (^m). The way to do this is to use wildcards,
and I'm not experienced enough with these to be sure I'd give you the right
expression, so see
http://www.mvps.org/word/FAQs/General/UsingWildcards.htm
--
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.
Robert said:
A dera friend of mine wrote a book of poetry. Being new to computers, she
simply pressed enters after a poem to get to the next page for a new poem.
Well now that is a problem. I am wanting to put page breaks after each poem
and delete the unneeded paragraph after a poem. There is one poem to a page
and there is 178 pages. The page break is fairly simple but time consuming.
But how can I delete the extra paragraphs?
I think I am looking for a macro that will insert a page break after each
poem then delete all blank lines down to the next poem? I figure I will have
to execute this macro below each peom (177 times)