-=> Quoting ROBERT LIDGREN to ALL <=-
RL> QUESTION: When using Word for Windows, is there some way to "strip"
RL> those pesky paragraph markers (hard breaks) at the end of
RL> EVERY LINE which seem to be included with text files we
THe following macro (originally written for Word for Windows 2) will
perform the task - or at least get most of the way there. It will only
leave a paragraph mark where there are empty lines.
This will work on whole document or selected section.
Sub MAIN
WW2_EditReplace .Find = "^w^p", .Replace = "^p", .WholeWord = 0, .MatchCase =
0, \
.ReplaceAll = 1, .Format = 0
WW2_EditReplace .Find = "^p", .Replace = "^n", .WholeWord = 0, .MatchCase =
0, \
.ReplaceAll = 1, .Format = 0
WW2_EditReplace .Find = "^n^n", .Replace = "^p^p", .WholeWord = 0, .MatchCase
= 0, \
.ReplaceAll = 1, .Format = 0
WW2_EditReplace .Find = "^w^n", .Replace = "^n", .WholeWord = 0, .MatchCase =
0, \
.ReplaceAll = 1, .Format = 0
WW2_EditReplace .Find = "^n", .Replace = " ", .WholeWord = 0, .MatchCase = 0,
\
.ReplaceAll = 1, .Format = 0
End Sub
--- Blue Wave/386 v2.30
---------------
* Origin: Sydney PC Users Group Mail Exchange (3:712/505)
|