ªð¦^¦Cªí ¤W¤@¥DÃD µo©«

¹ï©ó.activateªººÃ°Ý

¹ï©ó.activateªººÃ°Ý

¦b³B²z¤£¦PÀɮ׶¡¸ê®Æªº®É­Ô§Ú¤@¯ë³£¬O¥Î Workbooks(xxx).sheets().range()   xxx¬°ÀɦW
¦ý³Ìªñ(?)µo²{¦pªGÀÉ®×xxx¤£¬O¦b³Ì¤W¼hªº¸Ü·|¥X²{¿ù»~(¾¨ºÞ¦³¶}±Ò)
¥²¶·¥[¤WWorkbooks(xxx).Activate¤~¯à¥¿±`¹BÂà
½Ð°Ý¬°¤°»ò©O? (ı±oactivate«Ü¤¾ªü...)
¥t¥~¤âÃ䦳Filename_EBTS ©MFilename_EBTS_Net ¨â­ÓÀÉ®×
¤£ª¾¬°¦óµLªk¶i¦æ¸ê®Æ¶K¤W ½Ð«e½ú­Ì«üÂI
  1. Sub temp()
  2. DataDate = Date
  3. Filename_EBTS = Format(DataDate, "yyyymmdd") & "-P&S.xls"
  4. Filename_EBTS_Net = Format(DataDate, "yyyymmdd") & "-Net.xls"
  5. Filename_OTC = Format(DataDate, "yyyymmdd") & "-OTC.xls"

  6. i = Workbooks(Filename_EBTS_Net).Sheets(1).Cells(4, 1).End(xlDown).Row

  7. Workbooks(Filename_EBTS_Net).Sheets(1).Range("C5", Cells(i, 5)).Copy Workbooks(Filename_EBTS).Sheets(1).Range("G5")

  8. End Sub
½Æ»s¥N½X
¤]¹Á¸Õ¹L¨Ï¥Î.SelectµM«á.Paste¨ÌµMµL®Ä

files.rar (19.07 KB)

Sub temp()
Dim DataDate As String, Book_EBTS As Workbook, Book_EBTS_Net As Workbook, Book_OTC As Workbook
DataDate = Format(Date, "yyyymmdd")

Set Book_EBTS = Workbooks(DataDate & "-P&S.xls")
Set Book_EBTS_Net = Workbooks(DataDate & "-Net.xls")
Set Book_OTC = Workbooks(DataDate & "-OTC.xls")

i = Book_EBTS_Net.Sheets(1).Cells(4, 1).End(xlDown).Row
Book_EBTS_Net.Sheets(1).Range("C5:E" & i).Copy Book_EBTS.Sheets(1).Range("G5")
End Sub

TOP

Workbooks(Filename_EBTS_Net).Sheets(1).Range("C5", Cells(i, 5)).Copy

¬õ¦âªº³¡¥÷, ·|³Qµø¬°·í«e¬¡­¶Ã¯¤u§@ªíªº°Ñ·Ó, ¥¼¸õÂà¸Ó¬¡­¶Ã¯®É, À³·|¦³¿ù»~!!!

TOP

¦^´_ 3# ­ã´£³¡ªL
¦¨¥\¤F!
ªGµMÅ]°­Âæb²Ó¸`¸Ì
ÁÂÁ¤j¤j«üÂI:)

TOP

        ÀR«ä¦Û¦b : ¹ï¤÷¥À­nª¾®¦¡A·P®¦¡B³ø®¦¡C
ªð¦^¦Cªí ¤W¤@¥DÃD