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

Excel VBA «ü©wÀx¦s®æ­È¬°¿z¿ï±ø¥ó

Excel VBA «ü©wÀx¦s®æ­È¬°¿z¿ï±ø¥ó

¦U¦ì¦n¡A¤p§Ì³Ìªñ¤~¾ÇVBA¡A¯à¤O¤£¤~ ¦h¥b³£¨Ï¥Î¿ý»s¥\¯à¡Aªñ´Á¹J¨ì¤@¨ÇµLªk¿ý»sªº»y¨¥
¦pªþ¥ó©Ò¥Ü¡A¤p§Ì¦AA1(G2)¦³³]¤U©Ô¿ï³æ¡A±æ³z¹LVBAÂà´«¦¨A2¼Ò¼Ë
¤£¥Î³z¹L¿z¿ï¥\¯à¡AÁÂÁÂ

¬¡­¶Ã¯11.rar (28.05 KB)

¦^´_ 1# pkpk456789
¤£¥Î³z¹L¿z¿ï¥\¯à?
¥ÎÁôÂæC©O
  1. Sub Test()
  2.   Dim ar, filter As String
  3.   filter = ActiveSheet.[G2].Value
  4.   
  5.   Application.ScreenUpdating = False
  6.   With ActiveSheet.[C4].CurrentRegion
  7.     For i = UBound(.Value) To 2 Step -1
  8.       .Rows(i).EntireRow.Hidden = (.Cells(i, 1).Value <> filter)
  9.     Next
  10.   End With
  11.   Application.ScreenUpdating = True
  12. End Sub
½Æ»s¥N½X
ªí¹F¤£²M¡BÃD·N¤£©ú½T¡B¨SªþÀɮ׮榡¡B¨S¦³°Q½×°ÝÃDªººA«×~~~~~~¥H¤W·R²ö¯à§U¡C

TOP

¦^´_ 2# stillfish00


    ·PÁ¤j¯«¦^ÂСAÁôÂæC³o©Û§ÚÁÙ¯uªº¨S·Q¹L:D

TOP

        ÀR«ä¦Û¦b : ¦Û¤v®`¦Û¤v¡A²ö¹L©ó¶ÃµoµÊ®ð¡C
ªð¦^¦Cªí ¤W¤@¥DÃD