J
Joan NYC
Thanks Russ
I will hold on to this
However, the other one seems perfect
I'll have to test it out of the docs I have at work
I will hold on to this
However, the other one seems perfect
I'll have to test it out of the docs I have at work
Russ said:Joan,
Here is what I suggested, also, to work with a **selection**, in case
Jonathan's routine doesn't satisfy your requirements. This routine is less
likely to make all the previous 'non-Word paragraphs' into one big 'non-Word
paragraph', if you select over multiple 'non-Word paragraphs'.
(Mac users need to substitute \n for ^13)
Sub StripMultipleReturns2()
With Selection.Find
.Text = "^13{3,}"
.Replacement.Text = "^p^p"
.MatchWildcards = True
.Format = False
.Wrap = wdFindStop
.Execute replace:=wdReplaceAll
End With
End Sub
After using above sub use this one to make the 'non-Word paragraphs' more
like Word paragraphs:
Sub PutSoftReturnsInParagraphs()
With Selection.Find
.Text = "[!^13]^13[!^13]"
.Replacement.Text = "^l"
.MatchWildcards = True
.Format = False
.Wrap = wdFindStop
.Execute replace:=wdReplaceAll
End With
End Sub
Then to reduce consecutive paragraph marks:
Sub EliminateContiguousParagraphMarks()
With Selection.Find
.Text = "^13{2,}"
.Replacement.Text = "^p"
.MatchWildcards = True
.Format = False
.Wrap = wdFindStop
.Execute replace:=wdReplaceAll
End With
End Sub
Thank you. Thank you. Thank you!!!
This is EXACTLY what I was looking for
Now I have to bring it to work tomorrow. It will save me tons of time and
wrist action!
I also want to thank everyone else for their input