I know how to put the entire contents of the paragraph in the search
field, but how can I put a backspace character in the replace field so
that the blank line will be deleted?
Alternately, putting a [delete] character would work also, I think.
Any help?
Sent via Deja.com http://www.deja.com/
Before you buy.
Find the search string and replace with nothing - just leave Replace
blank. However you will probably run into the extra lines, actually I
think that's what you are asking about. <g> So here is a macro that
will take care of this. Just select the text and following paragraph
marks you want to delete and run the macro:
Sub ReplaceChar()
Dim findtxt As String
findtxt = Selection.Text
With Selection.Find
.Text = Selection.Text
.Replacement.Text = ""
.Forward = True
.Wrap = wdFindContinue
.Format = False
.MatchCase = False
.MatchWholeWord = False
.MatchWildcards = False
.MatchSoundsLike = False
.MatchAllWordForms = False
.Execute Replace:=wdReplaceAll
.Text = ""
End With
End Sub
~~~~~~~~~~~
Hope this helps,
Beth Melton
Microsoft Office MVP
Please post replies/further questions to the newsgroup so that all may
benefit.
skyki...@my-deja.com wrote in message
<8ed56r$gf$1...@nnrp1.deja.com>...
Let's say you have a paragraph like this one that you're reading now.
To replace it, enter the following into the Find What box:
Let's say you have a paragraph like this one that you're reading now.^p
Leave the Replace With box empty and click Replace All.
--
Penny
Templates, wizards, add-ins, and macros for Word
For more information, visit: www.wordsite.com
>
>
<skyki...@my-deja.com> wrote in message
news:8ed56r$gf$1...@nnrp1.deja.com...
In article <#EfEsjWs$GA.89@cppssbbsa03>,