- ©«¤l
- 976
- ¥DÃD
- 7
- ºëµØ
- 0
- ¿n¤À
- 1018
- ÂI¦W
- 0
- §@·~¨t²Î
- Win10
- ³nÅ骩¥»
- Office 2016
- ¾\ŪÅv
- 50
- ©Ê§O
- ¨k
- µù¥U®É¶¡
- 2013-4-19
- ³Ì«áµn¿ý
- 2024-10-30
|
¦^´_ 1# john2006168
½Ð´ú¸Õ¬Ý¬Ý¡AÁÂÁ¡C
Sub test1()
Dim FName As String, FPath As String
Dim sheet As Worksheet
Dim FDialog As FileDialog
Application.ScreenUpdating = False
Application.DisplayAlerts = False ' Ãö³¬Äµ§i°T®§
fileorg = ActiveWorkbook.Name
Set FDialog = Application.FileDialog(msoFileDialogFilePicker)
FDialog.Show
For x = 1 To FDialog.SelectedItems.Count
FPath = FDialog.SelectedItems(x)
Set WB = Workbooks.Open(FPath)
With Sheets(1).UsedRange
.Copy Workbooks(fileorg).Sheets(1).Range("a1")
End With
WB.Close
Next
Application.ScreenUpdating = True
Application.DisplayAlerts = True
End Sub |
|