- ©«¤l
- 976
- ¥DÃD
- 7
- ºëµØ
- 0
- ¿n¤À
- 1018
- ÂI¦W
- 0
- §@·~¨t²Î
- Win10
- ³nÅ骩¥»
- Office 2016
- ¾\ŪÅv
- 50
- ©Ê§O
- ¨k
- µù¥U®É¶¡
- 2013-4-19
- ³Ì«áµn¿ý
- 2024-10-30
|
¥»©«³Ì«á¥Ñ samwang ©ó 2022-3-24 07:51 ½s¿è
¦^´_ samwang
Dear samwang,
±z¦n¡A§Ú·Qn¦b"ì©l¸ê®Æ"¤u§@ªí¤Uª½±µ§R°£µL©³¦â(¦³¸ê®Æ)ªº¦C(¾ã¦C)
¦P¤@ ...
jsc0518 µoªí©ó 2022-3-23 20:38
½Ð¦A´ú¸Õ¬Ý¬Ý¡AÁÂÁÂ
Sub test2()
Dim xR As Range, xU As Range, Clr
Application.ScreenUpdating = False
With Sheets(1)
If .AutoFilterMode Then .[a1].AutoFilter
For Each xR In .Range(.[a1], .Cells(.Rows.Count, 1).End(3))
Clr = xR.DisplayFormat.Interior.ColorIndex
If Not Clr <> -4142 Then
If xU Is Nothing Then Set xU = xR Else Set xU = Union(xR, xU)
End If
Next
End With
If Not xU Is Nothing Then xU.EntireRow.Delete
Application.ScreenUpdating = True
End Sub |
|