- ©«¤l
- 519
- ¥DÃD
- 54
- ºëµØ
- 0
- ¿n¤À
- 595
- ÂI¦W
- 256
- §@·~¨t²Î
- win 10
- ³nÅ骩¥»
- []
- ¾\ŪÅv
- 50
- ©Ê§O
- ¨k
- µù¥U®É¶¡
- 2013-3-19
- ³Ì«áµn¿ý
- 2024-11-23
|
¦^´_ 5# fashionable3000
°Ñ¦Ò 4#¡A ½Ðª`·N¡GÀx¦s®æ B3 n¥´¤J ="=A0020" ¡A®æ¤l¤ºn¬Ý¨ì =A0020
¤£n¥u¥´¤J ="A0020" ¦Ó¬Ý¨ì A0020 ¦b®æ¤l¸Ì±
- Sub test1()
- Range("A2:A6").AdvancedFilter _
- Action:=xlFilterCopy, _
- criteriarange:=Range("B2:B3"), _
- copytorange:=Range("C2:C6"), _
- unique:=False
- End Sub
- Sub test2()
- Range("A10:A14").AdvancedFilter _
- Action:=xlFilterCopy, _
- criteriarange:=Range("B10:B11"), _
- copytorange:=Range("C10:C10"), _
- unique:=False
- End Sub
½Æ»s¥N½X ¤@¯ë "·Ç«h" ¾î¦V¦C (Row)Àx¦s®æ¤º©ñ "AND" ¡AÁa¦V¦æ(Column)Àx¦s®æ¤º©ñ "Or"¡F
¥i¥H¨Ï¥Î =, <,<=,>,>=, * ¡A
¥H¤UÀx¦s®æªº·Ç«h ¬O cells(18,"B") or cells(19,"B")
A B C
17 ID ID ID
18 A0020 =A0020 A0020
19 A0020A =*B A0020B
20 A0020B
21 AA0020- Sub test3()
- Range("A17:A21").AdvancedFilter _
- Action:=xlFilterCopy, _
- CriteriaRange:=Range("B17:B19"), _
- CopyToRange:=Range("C17"), _
- Unique:=False
- End Sub
½Æ»s¥N½X |
|