- ©«¤l
- 5923
- ¥DÃD
- 13
- ºëµØ
- 1
- ¿n¤À
- 5986
- ÂI¦W
- 0
- §@·~¨t²Î
- win10
- ³nÅ骩¥»
- Office 2010
- ¾\ŪÅv
- 150
- ©Ê§O
- ¨k
- ¨Ó¦Û
- ¥xÆW°ò¶©
- µù¥U®É¶¡
- 2010-5-1
- ³Ì«áµn¿ý
- 2022-1-23
        
|
¦^´_ 1# character
¸Õ¸Õ¬Ý- 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
½Æ»s¥N½X |
|