This works.
Sub Macro1()
FindString = InputBox("Enter the string to find.")
ReplaceString = InputBox("Enter the replacement string.")
StartRow = 1
EndRow = 3
For MyRow = StartRow To EndRow
Range("A" + CStr(MyRow)).Select
Test1 = InStr(Range("A" + CStr(MyRow)).Text, " Apt")
Test2 = InStr(Range("A" + CStr(MyRow)).Text, " Suite")
Test3 = InStr(Range("A" + CStr(MyRow)).Text, " Floor")
If Test1 = 0 And Test2 = 0 And Test3 = 0 Then
ActiveCell.Replace What:=FindString, Replacement:=ReplaceString, LookAt:=xlPart, SearchOrder:=xlByRows, MatchCase:=False, SearchFormat:=False, ReplaceFormat:=False
End If
Next MyRow
End Sub
Bookmarks