Dear ¤j¤j
§Q¥Î¥Ø«eªºEXCELÀÉ®×(¨Ò¦p:¬¡¶Ã¯1)¨Ó¶}°_¥t¤@ÓEXCELÀÉ®×(BB)
Dim A As Workbook, B As Worksheet
Set A = Workbooks.Open(Filename:=ThisWorkbook.Path & "\bb.xlsm")
Set B = A.Sheets("¤u§@ªí1")
Range("A1") = B.Range("A1")
end sub
¦pªG¹J¨ìBBÀɮ׳Q§O¤H¶}±Ò¤¤,´N·|¥X²{°õ¦æ¿ù»~,¦Ó¦Û°Ê¶}±ÒBBÀÉ®×,
µLªk¦AÄ~Äò°õ¦æ¤U±µ{¦¡,
¬O§_¦³¿ìªk¥i¥H¦b¤£ºÞÀɮ׬O§_¦³³Q¶}±Ò¤¤¤´¥i¥HÄ~Äò°õ¦æ¸Óµ{¦¡.
¨ºn¦p¦óקï??
ÁÂÁ§@ªÌ: mark15jill ®É¶¡: 2012-11-23 16:36
Sub nn()
Dim w As Window, wb As Workbook
Set d = CreateObject("Scripting.dictionary")
For Each w In Windows
¡@ d(w.Caption) = w.Caption
Next
Sheets("new").Select
¡@¡@Rows("1:1").Select
¡@¡@Selection.Copy
If d.exists("new.xls") = False Then Workbooks.Open Filename:="D:\new.xls"
Set wb = Workbooks("new.xls")
wb.Activate
¡@¡@ActiveSheet.Range("A65536").End(xlUp).Offset(1, 0).Select
¡@
¡@¡@Selection.PasteSpecial Paste:=xlPasteValues, Operation:=xlNone, SkipBlanks _
¡@¡@:=False, Transpose:=False
¡@¡@Application.CutCopyMode = False
¡@
¡@¡@wb.Save
End Sub§@ªÌ: GBKEE ®É¶¡: 2012-11-23 16:46