¦P¼Ë¥¨¶°¥t¤@Àɮ׫o°õ¦æ¿ù»~
- ©«¤l
- 9
- ¥DÃD
- 2
- ºëµØ
- 0
- ¿n¤À
- 11
- ÂI¦W
- 0
- §@·~¨t²Î
- win xp
- ³nÅ骩¥»
- Office 2003
- ¾\ŪÅv
- 10
- ©Ê§O
- ¨k
- ¨Ó¦Û
- ¥x¤¤
- µù¥U®É¶¡
- 2010-8-5
- ³Ì«áµn¿ý
- 2010-8-12
|
¦P¼Ë¥¨¶°¥t¤@Àɮ׫o°õ¦æ¿ù»~
¥»©«³Ì«á¥Ñ ycchenzd ©ó 2010-8-5 22:02 ½s¿è
¤p§Ì¤§«e¦b½׾µo°Ýªº ¤@Ó°ÝÃD
http://gb.twbts.com/index.php?topic=12801.0
sheet1¤º®e¤£©T©w,¦ý·|¨Ì¦¹±Æ§Ç
sheet2¤º®e©T©w,¤ñ¹ïsheet1«á,±N²Å¦Xªº¦C½Æ»s©ósheet3
sheet3¬°µ²ªG
¨Ï¥Î¤U¦Cµ{¦¡½X
Sub nn()
Dim Rng As Range, A As Range, Cell As Range
With Sheet2
Set Rng = .Range(.[A1], .[A65536].End(xlUp))
End With
With Sheet1
For Each A In .Range(.[D1], .[D65536].End(xlUp))
¡@¡@If Not Rng.Find(A, lookat:=xlWhole) Is Nothing Then
¡@¡@¡@ If Cell Is Nothing Then Set Cell = A Else Set Cell = Union(Cell, A)
¡@¡@End If
Next
End With
Sheet3.Cells = ""
Cell.EntireRow.Copy Sheet3.[A1]¡@¡@¡@
End Sub
¦ý¬O¦b쥻ÀÉ®×°õ¦æok,
n¦b¥t¤@Ó¥H¸ê®Æ®w§ì¨ú«áªº¸ê®ÆÀÉ°õ¦æ®É«o·|¦bCell.EntireRow.Copy Sheet3.[A1]¡@¥X²{¿ù»~
Ãþ¦üClass copy ªº¤èªk¿ù»~,
¦ý¬O°õ¦æ«áªº¸ê®Æ¬O¥¿½Tªº
¤£ª¾°ÝÃD¥X¦bþ¸Ì,¸ê®Æ¤º®e¬O¤@¼Ëªº°Ú
Àµ½Ð¸Ñµª
·|¬O¸òÄæ¦ì®æ¦¡¦³Ãö¶Ü?
¤w¸É¤WÀÉ®× |
-
-
book1.zip
(52.51 KB)
|
|
|
|
|
|
- ©«¤l
- 9
- ¥DÃD
- 2
- ºëµØ
- 0
- ¿n¤À
- 11
- ÂI¦W
- 0
- §@·~¨t²Î
- win xp
- ³nÅ骩¥»
- Office 2003
- ¾\ŪÅv
- 10
- ©Ê§O
- ¨k
- ¨Ó¦Û
- ¥x¤¤
- µù¥U®É¶¡
- 2010-8-5
- ³Ì«áµn¿ý
- 2010-8-12
|
¤w¸É¤WÀÉ®×
¥X²{ªº¿ù»~¬OClass Range ªºCopy¤èªk¥¢±Ñ
Àµ½Ð¸Ñµª..ÁÂÁÂ.. |
|
|
|
|
|
|
- ©«¤l
- 472
- ¥DÃD
- 5
- ºëµØ
- 0
- ¿n¤À
- 485
- ÂI¦W
- 0
- §@·~¨t²Î
- Windows
- ³nÅ骩¥»
- MS Office
- ¾\ŪÅv
- 100
- ©Ê§O
- ¨k
- ¨Ó¦Û
- »´ä
- µù¥U®É¶¡
- 2010-7-4
- ³Ì«áµn¿ý
- 2014-12-28
|
¸Õ¸Õ³oÓ:- Option Explicit
- Sub nn()
- Dim Rng As Range, A As Range, cell As Range
- With Sheet6
- Set Rng = .Range(.[A1], .[A65536].End(xlUp))
- End With
- With Sheet7
- For Each A In .Range(.[D1], .[D65536].End(xlUp))
- If Not Rng.Find(A, lookat:=xlWhole) Is Nothing Then
- If cell Is Nothing Then Set cell = A Else Set cell = Union(cell, A)
- End If
- Next
- End With
- Sheet8.Cells.Clear
- cell.EntireRow.Copy
- Sheet8.Range("A1").PasteSpecial Paste:=xlPasteValues
- End Sub
½Æ»s¥N½X µ¹¨ä¥L¤j¤j°Ñ¦Ò:
|
|
|
|
|
|
|
- ©«¤l
- 9
- ¥DÃD
- 2
- ºëµØ
- 0
- ¿n¤À
- 11
- ÂI¦W
- 0
- §@·~¨t²Î
- win xp
- ³nÅ骩¥»
- Office 2003
- ¾\ŪÅv
- 10
- ©Ê§O
- ¨k
- ¨Ó¦Û
- ¥x¤¤
- µù¥U®É¶¡
- 2010-8-5
- ³Ì«áµn¿ý
- 2010-8-12
|
¥H§A¤W¶ÇªºÀÉ®×´ú¸Õ¨Ã¥¼²£¥Í¿ù»~
¥[Ó§PÂ_¦¡¸Õ¸Õ¬Ý
If Not Cell Is Nothing Then Cell.EntireRow.Copy Sh ...
Hsieh µoªí©ó 2010-8-5 23:04
¥[¤FIf Not Cell Is Nothing Then Cell.EntireRow.Copy Sheet8.[A1]
ÁÙ¬O¤@¼Ë¿ù»~C
¦b±z¨º°õ¦æ¥¿½T¶Ü? |
|
|
|
|
|
|
- ©«¤l
- 472
- ¥DÃD
- 5
- ºëµØ
- 0
- ¿n¤À
- 485
- ÂI¦W
- 0
- §@·~¨t²Î
- Windows
- ³nÅ骩¥»
- MS Office
- ¾\ŪÅv
- 100
- ©Ê§O
- ¨k
- ¨Ó¦Û
- »´ä
- µù¥U®É¶¡
- 2010-7-4
- ³Ì«áµn¿ý
- 2014-12-28
|
¥»©«³Ì«á¥Ñ kimbal ©ó 2010-8-6 01:10 ½s¿è
¦^´_ 6# ycchenzd
ª©¥»°ÝÃD,07¤W¹B¬O¨S°ÝÃDªº, 03ªº·|¥X°ÝÃD
½Ð¸Õ¸Õ§â- Cell.EntireRow.Copy Sheet3.[A1]¡@
½Æ»s¥N½X ´«¦¨- cell.EntireRow.Copy
- Sheet3.Range("A1").PasteSpecial Paste:=xlPasteValues
½Æ»s¥N½X |
|
|
|
|
|
|
- ©«¤l
- 9
- ¥DÃD
- 2
- ºëµØ
- 0
- ¿n¤À
- 11
- ÂI¦W
- 0
- §@·~¨t²Î
- win xp
- ³nÅ骩¥»
- Office 2003
- ¾\ŪÅv
- 10
- ©Ê§O
- ¨k
- ¨Ó¦Û
- ¥x¤¤
- µù¥U®É¶¡
- 2010-8-5
- ³Ì«áµn¿ý
- 2010-8-12
|
¦^´_ ycchenzd
ª©¥»°ÝÃD,07¤W¹B¬O¨S°ÝÃDªº, 03ªº·|¥X°ÝÃD
½Ð¸Õ¸Õ§â´«¦¨
kimbal µoªí©ó 2010-8-6 01:07
´ú¸ÕOK,µL¿ù»~¤F
¦ý¬O¦P¼Ë¹q¸£,¥t¤@ÓÀÉ®×¥Hìµ{¦¡¤]¬OOK,®t§O¥u¦b¸ê®Æ¨Ó·½¤£¤@¼Ë
¤£ª¾¦ó¦]?
¤£¹LÁÙ¬OOK¤F
ÁÂÁ¤F |
|
|
|
|
|
|
- ©«¤l
- 9
- ¥DÃD
- 2
- ºëµØ
- 0
- ¿n¤À
- 11
- ÂI¦W
- 0
- §@·~¨t²Î
- win xp
- ³nÅ骩¥»
- Office 2003
- ¾\ŪÅv
- 10
- ©Ê§O
- ¨k
- ¨Ó¦Û
- ¥x¤¤
- µù¥U®É¶¡
- 2010-8-5
- ³Ì«áµn¿ý
- 2010-8-12
|
¦^´_ 8# GBKEE
§ï¤Ñ¦A¨Ó¸Õ¸Õ³oÓ
Àɮצb¤½¥q¹q¸£
ÁÂÁ¤F |
|
|
|
|
|
|