Find works, Find/Replace doesn't

I

Ian

I have run into an even more baffling problem. All 100 pages of my text
are (for the most part) lines ending with manual line breaks. This means
that there are only about fifty paragraphs in the whole book, but there
it is.

Every few lines, there's an extra manual line break. I've been taking
them out one at a time, but this is driving me batty. I did the obvious
thing: I did a find/replace, where I put ^l^l in the find, and ^l in the
replace. Always turns up zero hits.

BUT, if I just search for ^l^l, I find every one.

So, that makes the job *slightly* easier, but not much more so. I have
tried restarting my computer, and restarting Word 2007. No good there.
I've pored through the archives for this group, and the section of Word
Help where it explains about the find/replace dialogue.

Does anyone have a solution to this one?

Ian
 
G

Graham Mayor

You can replace the line breaks with a simple macro to perform three
replacements.

With Selection
.HomeKey wdStory
With .Find
.ClearFormatting
.Replacement.ClearFormatting
.Text = "^l^l"
.Replacement.Text = "^p"
.Forward = True
.Wrap = wdFindContinue
.Format = False
.MatchCase = False
.MatchWholeWord = False
.MatchAllWordForms = False
.MatchSoundsLike = False
.MatchWildcards = True
.Execute Replace:=wdReplaceAll
.Text = "[! ]^l"
.Replacement.Text = " ^l"
.Execute Replace:=wdReplaceAll
.Text = "^l"
.Replacement.Text = ""
.Execute Replace:=wdReplaceAll
End With
End With

http://www.gmayor.com/installing_macro.htm

--
<>>< ><<> ><<> <>>< ><<> <>>< <>><<>
Graham Mayor - Word MVP

My web site www.gmayor.com

<>>< ><<> ><<> <>>< ><<> <>>< <>><<>
 

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