TIP: Click on subject to list as thread! ANSI
echo: ms_word
to: ROBERT LIDGREN
from: IAN BINNIE
date: 1996-06-29 18:22:00
subject: STRIPPING PARAGRAPH MARKE

-=> 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)

SOURCE: echomail via exec-pc

Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.