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

[µo°Ý] Ãö©ó like °w¹ï¯S©w¤å¦r §R°£

[µo°Ý] Ãö©ó like °w¹ï¯S©w¤å¦r §R°£

¥»©«³Ì«á¥Ñ av8d ©ó 2023-2-12 16:18 ½s¿è
  1. For i = 2 To 100
  2.         If Cells(i, 9) Like "¤w¶W®É*" = True Then Rows(i).Delete
  3.     Next
½Æ»s¥N½X
§R°£.rar (18.54 KB)

¦³§R°£¯S©w¤å¦r¡A¦ý¬OµLªk¤@¦¸©Ê§R°£¡A«ö¤F3¦¸¤~§R§¹¡A
¦pªG¸ê®Æ¶q¦h¤F¡A´N¤£ª¾¹D­n«ö´X¦¸¡A¤@ª½¨S§ä¥X­ì¦]¡AÁÂÁ«e½ú­ÌªºÀ°¦£¡C

¥»©«³Ì«á¥Ñ ­ã´£³¡ªL ©ó 2023-2-12 16:36 ½s¿è

For i = 100 To 2 step -1

§R¦æ, ­n¤Ï¦V,
§_«h ¨C§R¤@¦¸,  i ¤£ÅÜ°Ê, ·|¤Ö§R//

Á|¨Ò//
·í i = 9 ®É, §R¥h²Ä9¦æ...¦¹®É²Ä10¦æÅܦ¨²Ä9¦æ
¤U¤@¦^ i ¤w¸g¬O 10, ¥¦Àˬdªº¬O­ì¸ê®Æªº²Ä11¦æ¤F, µ¥¤_²Ä10¨S¦³Àˬd¨ì~~

TOP

¦^´_ 2# ­ã´£³¡ªL

­ì¨Ó¦p¦¹¡AÃø©Ç«e½ú­Ì³£»¡°j°éºÉ¶q­Ë¹L¨Ó¼g¡A­ì¨Ó¬O³o­Ó·N«ä¡A¨ü¯q¨}¦h¡A·P¿E¤£ºÉ¡I

TOP

¥»©«³Ì«á¥Ñ Andy2483 ©ó 2023-2-13 09:30 ½s¿è

¦^´_ 1# av8d


    ÁÂÁ«e½úµoªí¦¹¥DÃD»P½d¨Ò
¬°¤FÀò¨ú¿n¤À,ÁöµM ­ã´£³¡ªL«e½ú¤w¸gµ¹¥¿½Tµª®×,«á¾Ç«pÁy¥Öªº·Q¦^µª
«á¾Ç«Øij:

Option Explicit
Sub ¦¬¶°²Å¦X±ø¥óªºÀx¦s®æ¶°_¤@¦¸²¾°£©Ò¦bªº¦C()
Dim xU As Range, i&
Set xU = ActiveSheet.UsedRange.Item(ActiveSheet.UsedRange.Count + 1)
For i = 2 To 100
   If Cells(i, 9) Like "¤w¶W®É*" = True Then Set xU = Union(xU, Cells(i, 9))
   'https://learn.microsoft.com/zh-tw/office/vba/api/excel.application.union
Next
Application.Goto xU
Application.Wait (Now + TimeValue("0:00:3"))
xU.EntireRow.Delete
End Sub


Application.Goto xU
https://learn.microsoft.com/zh-tw/office/vba/api/excel.application.goto


xU.EntireRow.Delete
https://learn.microsoft.com/zh-tw/office/vba/api/excel.range.entirerow
¥Î¦æ°Ê¸Ë¸mÂsÄý½×¾Â¾Ç²ß«Ü¤è«K,ÁÂÁ½׾¸gÀç¹Î¶¤
½Ð¤j®a¤@°_¤W½×¾Â¨Ó¥æ¬y

TOP

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