home *** CD-ROM | disk | FTP | other *** search
- .Type "This is a sample.[Enter]"
- .Type "This is another sample."
-
- .FindAndReplace.FindString = "sample"
- .FindAndReplace.ReplaceString = "script sample"
- .InitFindAndReplace True
-
- REM 0 = Found, 4 = NotFound
- If .Find = 0 Then Messagebox "Found the first item.",, "Skipping"
-
- REM Find the next instance
- .Find
-
- REM Replace the rest of the words
- .ReplaceAll
-