PDA

View Full Version : Solved: Search for text as part of a cell



Gunilla
08-15-2008, 01:34 AM
Hi
I need to find a text as a part of a cell and then delete that row. I know how to delete the row if I search for the exact text in a cell but not part of a cell.

:banghead:

Bob Phillips
08-15-2008, 01:48 AM
Instead of



Id .Cells(i,"A").Value = "the text" Then

use



If Instr(.Cells(I, "A").Value, "the text") > 0 Then

Gunilla
08-15-2008, 05:49 AM
Thank you, it helped me:beerchug: