Dim sStr as String
sStr = " the address contains a po box reference"
if instr(1, sStr, "po box", vbTextCompare) then
' it contains the substring "po box"
End if
--
Regards,
Tom Ogilvy
dukejas wrote in message
...
How to get rid of string which contain a substring like 'PO BOX'.
Is that 'Like', it doesn't work.
Thanks!
------------------------------------------------
~~ Message posted from http://www.ExcelTip.com/
~~View and post usenet messages directly from http://www.ExcelForum.com/