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

[µo°Ý] ¸ê®Æ§¨.XLS¶×¾ã(2010ª©)

[µo°Ý] ¸ê®Æ§¨.XLS¶×¾ã(2010ª©)

DEAR  ALL ¤j¤j
1.©ó C:AAA\¤U©ñ¸m  EXCELÀÉ  A1.XLS   A2.XLS  A3.XLS............
2.EXCEL ¬°  2010ª© ½Ð°Ý¦p¦ó®Ñ¼g VBA
   ¦Û°Ê±N   C:AAA\¤U©ñ¸m ¤§  A1.XLS   A2.XLS  A3.XLS........ ¶×¾ã¦Ü³æ¤@EXCEL
3.·Ð¤£§[½ç±Ð  THANKS*10000
ù

DEAR  ALL ¤j¤j
1.©ó C:AAA\¤U©ñ¸m  EXCELÀÉ  A1.XLS   A2.XLS  A3.XLS............
2.EXCEL ¬°  2010ª©  ...
rouber590324 µoªí©ó 2022-8-23 10:00


½Ð´ú¸Õ¬Ý¬Ý¡AÁÂÁÂ
Sub test()
Dim Arr, a, fs, fc, f, f1, n&
Application.ScreenUpdating = False: Application.DisplayAlerts = False: Application.AskToUpdateLinks = False
Set fs = CreateObject("Scripting.FileSystemObject")
With Application.FileDialog(msoFileDialogFolderPicker)
    .InitialFileName = "D:\"
    .Title = "¿ï¾ÜÀɮרӷ½¸ê®Æ§¨"
    .Show
    On Error GoTo EndSub:
    a = .SelectedItems(1)
End With
Tm = Timer
Set f = fs.GetFolder(a)
Set fc = f.Files
For Each f1 In fc
    Set WB = Workbooks.Open(f1)
    With Sheets(1)
        If .FilterMode Then .ShowAllData
        Arr = .Range("a1").CurrentRegion
    End With
    WB.Close
    If [a1] = "" Then n = 1 Else n = [A65536].End(xlUp).Row + 1
    Range("a" & n).Resize(UBound(Arr), UBound(Arr, 2)) = Arr
Next
Application.ScreenUpdating = True: Application.DisplayAlerts = True: Application.AskToUpdateLinks = True
MsgBox "°õ¦æ§¹¦¨" & Timer - Tm & " ¬í"
EndSub:
End Sub

TOP

DEAR samwang¤j¤j
´ú¸Õ«á  2002ª©¥i¥¿½T°õ¦æ
2010ª©¨q¥XªÅ¥Õ
ù

TOP

DEAR samwang¤j¤j
´ú¸Õ«á  2002ª©¥i¥¿½T°õ¦æ
2010ª©¨q¥XªÅ¥Õ
rouber590324 µoªí©ó 2022-8-24 14:05


§Úªº2016¤]¨S°ÝÃD¡A§Aªº2010¦³°ÝÃD¡A³o¼Ë¥u¯à¬Ý¨ä¥Lªº¤j¤j¦³µL¨ä¥¦¸Ñªk¤F¡AÁÂÁÂ

TOP

        ÀR«ä¦Û¦b : Ä@­n¤j¡B§Ó­n°í¡B®ð­n¬X¡B¤ß­n²Ó¡C
ªð¦^¦Cªí ¤W¤@¥DÃD