- ©«¤l
- 18
- ¥DÃD
- 6
- ºëµØ
- 0
- ¿n¤À
- 29
- ÂI¦W
- 0
- §@·~¨t²Î
- WINXP
- ³nÅ骩¥»
- OFFICE2000
- ¾\ŪÅv
- 10
- ©Ê§O
- ¨k
- ¨Ó¦Û
- HK
- µù¥U®É¶¡
- 2011-11-22
- ³Ì«áµn¿ý
- 2012-5-18
|
¥»©«³Ì«á¥Ñ idsmchow ©ó 2011-12-27 00:14 ½s¿è
½Ð°Ý¦p¦óקï¥H¤Uªº¥¨¶°??
Private Sub CommandButton1_Click()
Dim eachsht As Worksheet, eachrng As Range, tmpTbl As Range
For Each eachsht In Worksheets
If eachsht.Name <> "Statement" Then
Set eachrng = Sheets("Statement").Range("a65536").End(xlUp).Offset(1)
Set tmpTbl = eachsht.Range("a2").CurrentRegion
eachsht.Range("a2").CurrentRegion.AutoFilter Field:=3, Criteria1:=Sheets("Statement").Range("G2"), Operator:=xlAnd
tmpTbl.Rows("2:" & tmpTbl.Rows.Count).Copy eachrng
End If
Next
End Sub
·í¥G¦X±ø¥óªºn¨D, ¨Ò¦p "AA Ltd" ±ø¥ó³£¦b Jan , Feb. Mar Sheet - ¸ê®Æªí¥X²{ªº¸Ü, ³o¥¨¶°´N¯à¥¿½T¿z¿ï©Ò»Ýªº¸ê®Æ¤Î½Æ»s¨ìStatement Sheet.
¦ý±ø¥ó¤£¥G¦X¸ê®Æªíªº¸Ü ¨Ò¦p "EE Ltd" ³o¥¨¶°´N·|±N©Ò¦³¨S¦³Ãö«Yªº¸ê®Æ¤@¨ÖÂà¼g.
°ÝÃD¬O§_¥X©ó ' tmpTbl.Rows("2:" & tmpTbl.Rows.Count)' ³o¤@¥y¤W?
½Ð°Ý¦p¦ó×¥¿?
ÁÂÁÂ |
|