[attach]6852[/attach]
¾ã¦C§R°£Â\¦b²Ä3§@ªÌ: jim ®É¶¡: 2011-6-27 15:50
ÁÂÁ¦U¦ì¼ö¤ßªº«ü¾É ¦A¦¸·PÁ§@ªÌ: jim ®É¶¡: 2011-6-28 05:56
¦A«×½Ð¸û¦pªGn¤À¶}¨Ó°õ¦æ§R°£À³¦p¦ó¼g
a b c d e f g h
----------------------------------
1 2 3 x 1 2 1 y 1
2 1 2 y 3 2 3 x 3
3 3 2 x 2 3 2 x 2
4 2 3 z 3 4 2 x 3
¨SÀÉ®×, ª¼¼g:
Sub TEST()
Dim xA As Range, xR As Range, xU As Range
Set xA = Sheets("Sheet1").UsedRange.Offset(1, 0)
For Each xR In xA.Columns(3).Cells
If InStr("/cat/dog/", "/" & xR & "/") < 2 Then
If xU Is Nothing Then Set xU = xR Else Set xU = Union(xU, xR)
End If
Next
If Not xU Is Nothing Then xU.EntireRow.Delete
End Sub