Jayz
ISP
- Feb 17, 2002
- 59
This is doing my brain in.
I need to be able to delete rows on an entire sheet that contain specific words eg a row/s containing the words 'Mat' & 'Delta' regardless what cell it is in. It could be in some instances more than 2 words.
I'm curretly only able to delete according to one word.
Heres a script I found:
===========
Sub Find_Mat()
Dim rng As Range
Dim Mat As String
word = "Mat"
Do
Set rng = ActiveSheet.UsedRange.Find(word)
If rng Is Nothing Then
Exit Do
Else
Rows(rng.Row).Delete
End If
Loop
End Sub
===============
Would really appreciate some help.
Thanks,
Jay
I need to be able to delete rows on an entire sheet that contain specific words eg a row/s containing the words 'Mat' & 'Delta' regardless what cell it is in. It could be in some instances more than 2 words.
I'm curretly only able to delete according to one word.
Heres a script I found:
===========
Sub Find_Mat()
Dim rng As Range
Dim Mat As String
word = "Mat"
Do
Set rng = ActiveSheet.UsedRange.Find(word)
If rng Is Nothing Then
Exit Do
Else
Rows(rng.Row).Delete
End If
Loop
End Sub
===============
Would really appreciate some help.
Thanks,
Jay