VBAµ{¦¡¬O§_¥i¥H²¤Æ(§R°£AÄæ«ü©w¦r¤¸)
- ©«¤l
- 455
- ¥DÃD
- 111
- ºëµØ
- 0
- ¿n¤À
- 563
- ÂI¦W
- 228
- §@·~¨t²Î
- Windows 10
- ³nÅ骩¥»
- Office 2019
- ¾\ŪÅv
- 50
- ©Ê§O
- ¨k
- µù¥U®É¶¡
- 2013-11-7
- ³Ì«áµn¿ý
- 2024-11-17
|
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
- 262
- ¥DÃD
- 8
- ºëµØ
- 0
- ¿n¤À
- 280
- ÂI¦W
- 16
- §@·~¨t²Î
- xp
- ³nÅ骩¥»
- Office 2007
- ¾\ŪÅv
- 20
- ©Ê§O
- ¨k
- ¨Ó¦Û
- HK
- µù¥U®É¶¡
- 2015-8-11
- ³Ì«áµn¿ý
- 2024-10-26
|
¦^´_ 1# jsc0518 - Sub zz()
- Dim reg As Object, a, rng As Range, z&
- a = Range("a1:a" & Cells(Rows.Count, 1).End(3).Row).Value
- z = UBound(a)
- Set rng = Rows(z + 1)
- Set reg = CreateObject("vbscript.regexp")
- With reg
- .Pattern = "ªÅ¥Õ|¤½¥q|³æ§O:|¤é´Á|²£«~¤jÃþ:|®Öã|¦Xp|Á`p"
- For i = 1 To z
- If Len(a(i, 1)) = 0 Or .test(a(i, 1)) Then
- Set rng = Union(rng, Rows(i))
- End If
- Next
- End With
- rng.Delete
- Set rng = Nothing
- End Sub
½Æ»s¥N½X |
|
|
|
|
|
|
- ©«¤l
- 455
- ¥DÃD
- 111
- ºëµØ
- 0
- ¿n¤À
- 563
- ÂI¦W
- 228
- §@·~¨t²Î
- Windows 10
- ³nÅ骩¥»
- Office 2019
- ¾\ŪÅv
- 50
- ©Ê§O
- ¨k
- µù¥U®É¶¡
- 2013-11-7
- ³Ì«áµn¿ý
- 2024-11-17
|
¦^´_ 2# ikboy
¤j·P¿E¡A´ú¸ÕOK
ÁÂÁ§AªºÀ°¦£! |
|
Just do it.
|
|
|
|
|