K
Kobayashi
I'm sure this is very simple and hopefully somebody can help with th
following:
The loops work but if the ISLIKE value does = false I would like th
'l' loop value, after deleting the row, to reset back to '1' and mov
onto the next 'm' value. At the moment the For l loop continues to ru
for each cell in the range, which is approx. twenty values, and
therefore, could be speeded up considerably if I only knew how?!
For m = myrange.Rows.Count To 4 Step -1
For l = 1 To LUrange.Rows.Count
If ISLIKE(myrange.Cells(m, 1), LUrange.Cells(l, 1) & "*")
False Then
myrange.Cells(m).EntireRow.Delete
End If
Next l
Next m
Thanks,
Adria
following:
The loops work but if the ISLIKE value does = false I would like th
'l' loop value, after deleting the row, to reset back to '1' and mov
onto the next 'm' value. At the moment the For l loop continues to ru
for each cell in the range, which is approx. twenty values, and
therefore, could be speeded up considerably if I only knew how?!
For m = myrange.Rows.Count To 4 Step -1
For l = 1 To LUrange.Rows.Count
If ISLIKE(myrange.Cells(m, 1), LUrange.Cells(l, 1) & "*")
False Then
myrange.Cells(m).EntireRow.Delete
End If
Next l
Next m
Thanks,
Adria