- ©«¤l
- 233
- ¥DÃD
- 53
- ºëµØ
- 0
- ¿n¤À
- 292
- ÂI¦W
- 0
- §@·~¨t²Î
- WinXp
- ³nÅ骩¥»
- 2010
- ¾\ŪÅv
- 20
- ©Ê§O
- ¨k
- µù¥U®É¶¡
- 2012-1-6
- ³Ì«áµn¿ý
- 2024-3-8
|
¦^´_ 28# GBKEE
¥ý·PÁÂGBKEEªO¥Dªº¦^ÂÐ
¿ù»~°T®§¥Ø«e³£±Æ°£¤F
¦ý¬O«o¥X²{¨S¦³½Æ»s"·í¤ë³øªí"¤¤ªº[ºî¦X¸ê®Æ®w]¨ì
"¥þ¦~«×¸ê®Æ®w"¸ê®Æªíªº[ºî¦X¸ê®Æ®w]¤¤
¤Ï¦Ó¥X²{
¶}±Ò"¥þ¦~«×¸ê®Æ®w"¸ê®Æªíªº[ºî¦X¸ê®Æ®w]¤¤½Æ»s¤Fa1:aq¦³Èªº³Ì«á¤@¦æ
¨ì
"¥þ¦~«×¸ê®Æ®w"¸ê®Æªíªº[ºî¦X¸ê®Æ®w]ªºªÅ¥Õ³B¤U¤è¥h¤F
¬O§_¥i¥H¦A½ÐÀ°¦£¬Ý¬Ýþ¸Ì¦³°ÝÃD©O..- 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.xlsm" Then
- Set wsTar = wbTar.Sheets("ºî¦X¸ê®Æ®w")
- bNFind = False
- Exit For
- End If
- Next
- If bNFind Then ' YÀÉ®×¥¼¶}±Ò«h¶}±Ò¥¦
- With Workbooks.Open("¥þ¦~«×¸ê®Æ®w.xlsm", , True)
- Set wbTar = ThisWorkbook
- Set wsTar = .Sheets("ºî¦X¸ê®Æ®w")
- End With
- End If
-
- With wsTar
- lSRow = .Cells(.Rows.Count, .[AQ1].Column).End(xlUp).Row ' §ä¥½¦C
- lTRow = .Cells(.Rows.Count, 1).End(xlUp).Row
- .Range(.[A5], .Cells(lSRow, .[AQ4].Column)).Copy .Cells(lTRow, 1)
- End With
- End Sub
½Æ»s¥N½X |
|