VBAµ{¦¡¬O§_¥i¥H²¤Æ(§R°£AÄæ«ü©w¦r¤¸)
- ©«¤l
- 455
- ¥DÃD
- 111
- ºëµØ
- 0
- ¿n¤À
- 563
- ÂI¦W
- 52
- §@·~¨t²Î
- Windows 10
- ³nÅ骩¥»
- Office 2019
- ¾\ŪÅv
- 50
- ©Ê§O
- ¨k
- µù¥U®É¶¡
- 2013-11-7
- ³Ì«áµn¿ý
- 2025-3-12
        
|
VBAµ{¦¡¬O§_¥i¥H²¤Æ(§R°£AÄæ«ü©w¦r¤¸)
¿Ë·Rªº¥ý¶i,
§ÚªºVBA»yªk¦p¤U¡A¬O§_¥i¥H²¤Æ¡A³Ì¥Dn³£¬O¦bAÄæ¦ì¦³¥X²{ÃöÁä¦rn§R°£¥H¤Î¥un¬OªÅ¥Õ´N§R°£
*ªÅ¥Õ¡B¤½¥q¡B³æ§O:¡B¤é´Á*¡B²£«~¤jÃþ:¡B®Öã*¡B¦Xp*¡BÁ`p*
Sub Step1()
On Error Resume Next
[A:A].SpecialCells(xlCellTypeBlanks).EntireRow.Delete
On Error GoTo 0
End Sub
Sub Step2()
Dim yy
yy = "¤½¥q"
For i = [a65536].End(xlUp).Row To 1 Step -1
If WorksheetFunction.CountIf(Rows(i), yy) > 0 Then Rows(i).Delete
Next i
End Sub
Sub Step3()
'AÄd¤U²¾°£"³æ§O:"
Dim yy
yy = "³æ§O:"
For i = [a65536].End(xlUp).Row To 1 Step -1
If WorksheetFunction.CountIf(Rows(i), yy) > 0 Then Rows(i).Delete
Next i
End Sub
Sub Step4()
'AÄd¤U²¾°£"¤é´Á*"
Set a = Columns("A").Find("¤é´Á*")
Do Until a Is Nothing
a.EntireRow.Delete
Set a = Columns("A").Find("¤é´Á*")
Loop
End Sub
Sub Step5()
'AÄd¤U²¾°£"²£«~¤jÃþ:"
Dim yy
yy = "²£«~¤jÃþ:"
For i = [a65536].End(xlUp).Row To 1 Step -1
If WorksheetFunction.CountIf(Rows(i), yy) > 0 Then Rows(i).Delete
Next i
End Sub
Sub Step6()
'AÄd¤U²¾°£"®Öã*"
Set a = Columns("A").Find("®Öã*")
Do Until a Is Nothing
a.EntireRow.Delete
Set a = Columns("A").Find("®Öã*")
Loop
End Sub
Sub Step7()
'AÄd¤U²¾°£"¦Xp*"
Set a = Columns("A").Find("¦Xp*")
Do Until a Is Nothing
a.EntireRow.Delete
Set a = Columns("A").Find("¦Xp*")
Loop
End Sub
Sub Step8()
'AÄd¤U²¾°£"Á`p*"
Set a = Columns("A").Find("Á`p*")
Do Until a Is Nothing
a.EntireRow.Delete
Set a = Columns("A").Find("Á`p*")
Loop
End Sub |
|
Just do it.
|
|
|
|
|
- ©«¤l
- 455
- ¥DÃD
- 111
- ºëµØ
- 0
- ¿n¤À
- 563
- ÂI¦W
- 52
- §@·~¨t²Î
- Windows 10
- ³nÅ骩¥»
- Office 2019
- ¾\ŪÅv
- 50
- ©Ê§O
- ¨k
- µù¥U®É¶¡
- 2013-11-7
- ³Ì«áµn¿ý
- 2025-3-12
        
|
¦^´_ 2# ikboy
¤j·P¿E¡A´ú¸ÕOK
ÁÂÁ§AªºÀ°¦£! |
|
Just do it.
|
|
|
|
|