Thread
:
Find text in string
View Single Post
#
2
Posted to microsoft.public.excel.programming
Don Guillett[_4_]
external usenet poster
Posts: 2,337
Find text in string
Have a look at
InStr
Sub findwords()
x = InStr(ActiveCell, "on hand")
MsgBox x
End Sub
--
Don Guillett
SalesAid Software
"Mike D." <Mike wrote in message
...
Hi. Within a loop, I would like for the macro to find the text "On Hand"
within a cell on a given row. If the text exists anywhere in the cell, I
would like to delete the row.
What command should I use? I know that if I wanted to find this in the
left
or right of the string I would use the LEFT or RIGHT function, but I don't
know how to have it search anywhere in the string. Thanks!
Reply With Quote
Don Guillett[_4_]
View Public Profile
Find all posts by Don Guillett[_4_]