ªð¦^¦Cªí ¤W¤@¥DÃD µo©«

[µo°Ý] ¦p¦óÁYµu§PÂ_±ø¥ó§R°£³t«×?

[µo°Ý] ¦p¦óÁYµu§PÂ_±ø¥ó§R°£³t«×?

½Ð°Ý¦U¦ì¤j¤j
¥Ø«e¦³­Ó²Î­pªí
­n§R°£©Ò¥]§t¦C¤¤ªÅ¥Õ .«ü©w¤å¦r.¬Û¦ü¤å¦rµ¥±ø¥óªº¸ê®Æ
¦ý¦ü¥G¶]ªº®É¶¡¦³ÂI¤[  ¤£ª¾¥i§_À°¦£¬O§_¦³¥iºë¶i¤§³B?
For i = [a5000].End(xlUp).Row To 6 Step -1
If Cells(i, "A")="" _
Or Left(Cells(i, 1), 4) = "¸ê®Æ" _
Or Left(Cells(i, 1), 2) = "³æ¦ì" _
Or Left(Cells(i, 1), 3) = "³æ ¦ì" _
Or Left(Cells(i, 1), 4) = "³æ  ¦ì" _
Or Left(Cells(i, 1), 5) = "³æ   ¦ì" _
Or Left(Cells(i, 1), 6) = "³æ    ¦ì" _
Or Left(Cells(i, 1), 2) = "³Æµù" _
Or Left(Cells(i, 1), 3) = "³Æ µù" _
Or Left(Cells(i, 1), 2) = "·F¨Æ" _
Or Left(Cells(i, 1), 2) = "§Þ¤h" _
Or Left(Cells(i, 1), 2) = "§Þ¦õ" _
Or Left(Cells(i, 1), 2) = "²Õ­û" _
Or Left(Cells(i, 1), 2) = "½Ò­û" _
Or Left(Cells(i, 1), 5) = "ªvÀø®v" _
Or Left(Cells(i, 1), 5) = "¤u§@®v" _
Or Left(Cells(i, 1), 5) = "ªvÀø®v" _
Or Left(Cells(i, 1), 5) = "Àç¾i®v" _
Or Left(Cells(i, 1), 3) = "§U²z" _
Or Left(Cells(i, 1), 3) = "¦õ²z" _
Or Left(Cells(i, 1), 3) = "ºÞ²z" _
Or Left(Cells(i, 1), 4) = "¨Æ°È" _
Or Left(Cells(i, 1), 4) = "²Õªø" _
Or Left(Cells(i, 1), 4) = "¥D¥ô" _
Or Left(Cells(i, 1), 4) = "·~°È" _
Or Left(Cells(i, 1), 4) = "¦æ¬F" _
Or Cells(i, 1).Value = "³Æµù: ¨´®ÉÄæ¦ìÅã¥Ü" _
Or Cells(i, 1).Value = "¾ºÙ" _
Or Left(Cells(i, 1), 2) = "¬d¸ß" Then
    Rows(i).Delete
End If
Next i

¥»©«³Ì«á¥Ñ Andy2483 ©ó 2023-12-31 22:09 ½s¿è

¦^´_ 1# honching99


    ÁÂÁ½׾Â,ÁÂÁ«e½úµoªí¦¹¥DÃD
«á¾ÇÂǦ¹©«½m²ßInStr(),Mid(),Union(),¾Ç²ß¤è®×¦p¤U,½Ð«e½ú°Ñ¦Ò

Option Explicit
Sub TEST_S()
Dim A$, N%, i&, j%, M$, xU As Range, T$, xR As Range
A = "/¸ê®Æ/³æ¦ì/³æ ¦ì/³æ  ¦ì/³æ   ¦ì/³æ    ¦ì/³Æµù/³Æ µù/·F¨Æ/§Þ¤h/§Þ¦õ/²Õ­û/½Ò­û/ªvÀø®v/¤u§@®v/" & _
    "Àç¾i®v/§U²z/¦õ²z/ºÞ²z/¨Æ°È/²Õªø/¥D¥ô/·~°È/¦æ¬F/¬d¸ß/"
For i = 6 To [A5000].End(xlUp).Row
   Set xR = Cells(i, 1): T = Trim(xR): If InStr("/¾ºÙ//", "/" & T & "/") Then GoTo i01
   For j = 1 To Len(T)
      M = Mid(T, 1, j): N = InStr(A, M)
      If N = 0 Then GoTo i02
      If Mid(A, N - 1, 1) = "/" And Mid(A, N + j, 1) = "/" Then GoTo i01
      If j = Len(T) Then GoTo i02
   Next
i01: If xU Is Nothing Then Set xU = xR Else Set xU = Union(xU, xR)
i02: Next
If Not xU Is Nothing Then xU.EntireRow.Select
End Sub
¥Î¦æ°Ê¸Ë¸mÂsÄý½×¾Â¾Ç²ß«Ü¤è«K,ÁÂÁ½׾¸gÀç¹Î¶¤
½Ð¤j®a¤@°_¤W½×¾Â¨Ó¥æ¬y

TOP

·PÁ«ü¾É­×¥¿µ{¦¡   Àò¯q¨}¦h

TOP

        ÀR«ä¦Û¦b : ¯àµ½¥Î®É¶¡ªº¤H¡A¥²¯à´x´¤¦Û¤v§V¤Oªº¤è¦V¡C
ªð¦^¦Cªí ¤W¤@¥DÃD