- ©«¤l
- 522
- ¥DÃD
- 36
- ºëµØ
- 1
- ¿n¤À
- 603
- ÂI¦W
- 0
- §@·~¨t²Î
- win xp sp3
- ³nÅ骩¥»
- Office 2003
- ¾\ŪÅv
- 50
- ©Ê§O
- ¨k
- µù¥U®É¶¡
- 2012-12-13
- ³Ì«áµn¿ý
- 2021-7-11
|
¥»©«³Ì«á¥Ñ yen956 ©ó 2014-5-13 19:10 ½s¿è
¦^´_ 1# pupai
¬O¨C¦¸§¡±NSheet1 ÄæA ªº¸ê®Æ, ¥þ³¡³Æ¥÷¨ì Sheet2?
¦pªG¬O, ¸Õ¸Õ³oÓ- Sub Command()
- Dim sh1, sh2 As Worksheet
- Dim lastRow1, lastRow2 As Integer
-
- Set sh1 = Sheets("Sheet1")
- Set sh2 = Sheets("Sheet2")
- lastRow1 = sh1.[A2].End(xlDown).Row
- lastRow2 = sh2.[A65536].End(xlUp).Row
-
- '°²©wn½Æ»sªº¸ê®Æ, ¨C¦¸§¡±q sh1.[A2]¶}©l
- '±NSheet1 ÄæA ªº¸ê®Æ, ¥þ³¡³Æ¥÷¨ì Sheet2ÄæA³Ì¤U±
- sh1.[A2].Resize(lastRow1 - 1, 1).Copy sh2.[A2].Offset(lastRow2 - 1, 0)
- End Sub
½Æ»s¥N½X |
|