- ©«¤l
- 455
- ¥DÃD
- 111
- ºëµØ
- 0
- ¿n¤À
- 563
- ÂI¦W
- 234
- §@·~¨t²Î
- Windows 10
- ³nÅ骩¥»
- Office 2019
- ¾\ŪÅv
- 50
- ©Ê§O
- ¨k
- µù¥U®É¶¡
- 2013-11-7
- ³Ì«áµn¿ý
- 2024-11-25
|
¦^´_ 2# ikboy
Dear ÁÂÁ±zªº¦^ÂÐ,
¤U¦C»yªk¬O±NAÄæ¦CY¦³¥X²{ÃöÁä¦r®É¡A´N§R°£¸Ó¦C
¦ý§Ú·Q§â¨ä¤¤¤@ÓÃöÁä¦r"ªÅ¥Õ"-->Y¹JAÄæ¦C¬°ªÅ¥Õ®É¡A´N¤£n§R°£
§Ú§ï¤F
쥻¡G .Pattern = "ªÅ¥Õ|¤½¥q|³æ§O:|¤é´Á|²£«~¤jÃþ:|®Öã|¦Xp|Á`p"
§ó§ï¡G .Pattern = "¤½¥q|³æ§O:|¤é´Á|²£«~¤jÃþ:|®Öã|¦Xp|Á`p"
¦ýAÄæ¦CªÅ¥Õ¸Ó¦C¤]·|¤@¨Ö§R°£
¬O§_þ¤@¬qVBA»yªk»Ý°µ×§ï©O¡H
Sub Step1()
'§R°£ key word : ¤½¥q / ³æ§O: / ¤é´Á* / ²£«~¤jÃþ: / ®Öã / ¦Xp* / ²Îp*
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 |
|