TIP: Click on subject to list as thread! ANSI
echo: ms_word
to: ROGER MCDOWALL
from: MAGGIE INNES
date: 1997-01-22 11:44:00
subject: Macro needed!

        Can anyone, please, supply a macro to be assigned to a toolbar button 
to remove
these and to format the text properly for importation into magazine articles
the following Macro will remove unwanted Returns from  Text Files.
Sub MAIN
EditReplace .Find = "^p^p", .Replace = "$$$", .Direction = 0, .MatchCase = 0, 
.WholeWord = 0, .PatternMatch = 0, .SoundsLike = 0, .ReplaceAll, .Format = 0, 
.Wrap = 1
EditReplace .Find = "^p", .Replace = "", .Direction = 0, .MatchCase = 0, 
.WholeWord = 0, .PatternMatch = 0, .SoundsLike = 0, .ReplaceAll, .Format = 0, 
.Wrap = 1
EditReplace .Find = "$$$", .Replace = "^p^p", .Direction = 0, .MatchCase = 0, 
.WholeWord = 0, .PatternMatch = 0, .SoundsLike = 0, .ReplaceAll, .Format = 0, 
.Wrap = 1
MsgBox "Removal of Unwanted Paragraph Marks now complete ! "
End Sub
M. InnesHope this Helps !
---
---------------
* Origin: Melbourne PC User Group BBS (3:632/309)

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™.