- ©«¤l
- 835
- ¥DÃD
- 6
- ºëµØ
- 0
- ¿n¤À
- 915
- ÂI¦W
- 16
- §@·~¨t²Î
- Win 10,7
- ³nÅ骩¥»
- 2019,2013,2003
- ¾\ŪÅv
- 50
- ©Ê§O
- ¨k
- µù¥U®É¶¡
- 2010-5-3
- ³Ì«áµn¿ý
- 2024-11-14
|
·QÉ´£°Ý©T©wÀÉ®×ÀɦWªº¤À¶¸ê®Æ½Æ»s°ÝÃD
·Q±q¸ê®Æªí"·í¤ë³øªí"¤¤«Ø¥ß¥¨¶°¡A§@¥Î¦p ¤U
½Æ»s"·í¤ë³øªí"¤¤ªº ...
jackson7015 µoªí©ó 2015-5-7 08:29 - Sub nn()
- Dim lSRow&, lTRow&
- Dim sPath$
- Dim bNFind As Boolean
- Dim wsSou As Worksheet, wsTar As Worksheet
- Dim wbSou As Workbook, wbTar As Workbook
-
- sPath = ThisWorkbook.Path
- ChDrive sPath
- ChDir sPath
- Set wbSou = ThisWorkbook
- Set wsSou = wbSou.Sheets("ºî¦X¸ê®Æ®w")
-
- bNFind = True
- For Each wbTar In Workbooks ' ¥þ¦~«×¸ê®Æ®w Àɮ׬O§_¤w¶}±Ò
- If wbTar.Name = "¥þ¦~«×¸ê®Æ®w.xls" Then
- Set wsTar = wbTar.Sheets("ºî¦X¸ê®Æ®w")
- bNFind = False
- Exit For
- End If
- Next
- If bNFind Then ' YÀÉ®×¥¼¶}±Ò«h¶}±Ò¥¦
- With Workbooks.Open("¥þ¦~«×¸ê®Æ®w.xls", , True)
- Set wbTar = ThisWorkbook
- Set wsTar = .Sheets("ºî¦X¸ê®Æ®w")
- End With
- End If
-
- With wsSou
- lSRow = .Cells(Rows.Count, [AQ1].Column).End(xlUp).Row ' §ä¥½¦C
- lTRow = wsTar.Cells(Rows.Count, 1).End(xlUp).Row
- .Range([A5], .Cells(lSRow, [AQ1].Column)).Copy wsTar.Cells(lTRow, 1)
- End With
- End Sub
½Æ»s¥N½X ¦³¨Ç«ü¥O¨ÃµL¥²n©Ê,
¥u¬O¤@¨Ö¦C¥X¨Ó¬ÛÃöª«¥ó¥i¥H¥Î«ç¼Ëªº«ü¥O¨Ó¨ú±o.
Y¦³¥ý°õ¦æ©³¤U³o¤T¦æ,
sPath = ThisWorkbook.Path
ChDrive sPath
ChDir sPath
«h¥u»Ýn±NÀɮ׳£©ñ¦b¦Pӥؿý¤U,
ŪÀÉ«ü¥O¤¤¥i¥H¤£¥Î¦Aµ¹¸ô®|. |
|