In, Id like to write a macro to look at a cell to see if it contains a
particular word. eg if i had " Id like to write a macro to look at a
cell " in a1, and i want to see if the sentance contains "macro".
How would I go about this. I know how to move through the cells just
not how to look at the text.
Regards Robert
Don Guillett - 18 Jul 2007 14:09 GMT
Look in the vba help index for INSTR
if instr>0

Signature
Don Guillett
Microsoft MVP Excel
SalesAid Software
dguillett1@austin.rr.com
> In, Id like to write a macro to look at a cell to see if it contains a
> particular word. eg if i had " Id like to write a macro to look at a
> cell " in a1, and i want to see if the sentance contains "macro".
> How would I go about this. I know how to move through the cells just
> not how to look at the text.
> Regards Robert