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

[µo°Ý] ¿z¿ï¸ê®Æ°ÝÃD?

¦^´_ 1# idsmchow
  1. Private Sub CommandButton1_Click()
  2.     Dim eachsht As Worksheet, eachrng As Range
  3.     For Each eachsht In Worksheets
  4.         With eachsht
  5.             If .Name <> "Statement" Then
  6.                 .Range("a1").AutoFilter Field:=3, Criteria1:=Sheets("Statement").Range("G2"), Operator:=xlAnd
  7.                 If .Range("a" & Rows.Count).End(xlUp).Row > 1 Then '¦³¿z¿ï¨ì©Ò»Ýªº¸ê®Æ
  8.                     Set eachrng = Sheets("Statement").Range("a" & Rows.Count).End(xlUp).Offset(1)
  9.                     .Rows("2:" & .Range("a" & Rows.Count).End(xlUp).Row).Copy eachrng
  10.                 End If
  11.                 .Range("a2").CurrentRegion.AutoFilter              '¨S¦³«ü©w·Ç«h->Åã¥Ü¥þ³¡¸ê®Æ
  12.             End If
  13.         End With
  14.     Next
  15. End Sub
½Æ»s¥N½X

TOP

¦^´_ 5# register313
¨S¿ù.¬O¤@¼Ëªº®ÄªG,®t§O¬O§A¦h½Æ»sªÅ¥Õªº¤@¦C.
¦pªG¸ê®Æ®wªº¸ê®Æ¬O³sÄò¨ì¤u§@ªíªº³Ì«á¤@¦C,§A§Úªºµ{¦¡³£·|¥X¿ùªº

TOP

        ÀR«ä¦Û¦b : ¤£©È¨Æ¦h¡A¥u©È¦h¨Æ¡C
ªð¦^¦Cªí ¤W¤@¥DÃD