- ©«¤l
- 39
- ¥DÃD
- 8
- ºëµØ
- 0
- ¿n¤À
- 53
- ÂI¦W
- 0
- §@·~¨t²Î
- WIN7
- ³nÅ骩¥»
- 2003
- ¾\ŪÅv
- 20
- µù¥U®É¶¡
- 2013-11-16
- ³Ì«áµn¿ý
- 2016-1-30
|
¦^´_ 1# a31075ha
Option Explicit
Dim Show_File As Object
Sub ¥[¤JÀÉ®×()
Dim I As Integer
Set Show_File = Application.FileDialog(msoFileDialogOpen)
With Show_File
.InitialFileName = "D:\*.xls" '«ü©w xlsÀÉ
.AllowMultiSelect = True
.Show
If .SelectedItems.Count > 0 Then
For I = 1 To .SelectedItems.Count
Cells(I, 2) = .SelectedItems(I)
Next
End If
End With
End Sub
Sub °õ¦æ()
Dim I As Integer, Sh As Worksheet, Rng As Range
Set Sh = Workbooks("¶K¤W.xlsm").Sheets(1)
With Show_File
If .SelectedItems.Count > 0 Then
For I = 1 To .SelectedItems.Count
Set Rng = Sh.Cells(Sh.Rows.Count, "A").End(xlUp).Offset(1) 'AÄæ³Ì«á¦³¸ê®Æ¦Cªº¤U¤@¦C
With Workbooks.Open(.SelectedItems(I))
.Sheets(1).Range("A1:C6").Copy Rng
.Close 0
End With
Next
End If
End With
Sh.Parent.Save ' ¶K¤W.xlsm ¦sÀÉ
End Sub
Ãþ¦ü¹³³o¤@¬q³o¼Ë ¥u¬O¶K¤Wªº¤è¬O§Æ±æ¸ò¾É¤J²£«~³W®æªº¤è¦¡¤@¼Ë ¥u¦³®Ø¿ï½d³ò¤ºªº«ü©wÄæ¦ì¶K¤W |
|