- ©«¤l
- 6
- ¥DÃD
- 2
- ºëµØ
- 0
- ¿n¤À
- 22
- ÂI¦W
- 0
- §@·~¨t²Î
- XP
- ³nÅ骩¥»
- Office 2003
- ¾\ŪÅv
- 10
- ©Ê§O
- ¨k
- ¨Ó¦Û
- New Taipei City
- µù¥U®É¶¡
- 2010-12-10
- ³Ì«áµn¿ý
- 2011-1-1
|
[µo°Ý] ¶i¶¥¿z¿ïªºµ{¦¡½ÐÀ°¦£×¥¿
½Ð¦U¦ì°ª¤â¤jô¤j©jÀ°¦£
§Úªº¸ê®Æ¦p¤U
A B C
1 Tom 1 0
2 Jeff 2 2
3 Henry 0 1
4 Jerry 5 5
5 May 1 1
6 Tina 0 0
.
.
..
1000
§Ún±NBÄæ©ÎCÄæȬ°1ªº¤H©ú½Æ»s¨ì¥t¤@Ó¤u§@ªí¡A³B²z«áµ²ªG¦p¤U
A B C
1 Tom 1 0
2 henry 0 1
3 may 1 1
.
.
¤p§Ì¸ê®Æ¦³1000¦hµ§¡A½ÐÀ°¦£
¤p§Ì¤À2¬q¼g¦¨VBA
²Ä¤@¬qOK
Sub ¿ï¾Ü½d³ò()
Dim i%, j%
Dim ta As Range, tb As Range, tc As Range
With Worksheets(1)
i = Cells(Rows.Count, "a").End(xlUp).Row
j = Range("A1").End(xlToRight).Column
range=(Cells(1, 1), Cells(i, j)).Select
End With
End Sub
²Ä¤G¬qOK
Sub ¶i¶¥¿z¿ï»P½Æ»s()
Dim ta As Range, tb As Range, tc As Range
Set ta = Worksheets(1).Range("a1", "g1310")
Set tb = Worksheets(2).Range("a1", "b2")
Set tc = Worksheets(3).Range("a1")
ta.AdvancedFilter xlFilterCopy, tb, tc
End Sub
§Ú¦X¨Ö¨â¬qµ{¦¡¦¨¬°
Sub ¶i¶¥¿z¿ï»P½Æ»s()
Dim i%, j%
Dim ta As Range, tb As Range, tc As Range
With Worksheets(1)
i = Cells(Rows.Count, "a").End(xlUp).Row
j = Range("A1").End(xlToRight).Column
End With
Set ta = Worksheets(1).Range(Cells(1, 1), Cells(i, j))
Set tb = Worksheets(2).Range("a1", "b2")
Set tc = Worksheets(3).Range("a1")
ta.AdvancedFilter xlFilterCopy, tb, tc
End Sub
µ²ªG¬O¥X²{¿ù»~¡A½Ð«e³Q«ü¥¿!! |
|