- ©«¤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
|
¦^´_ 2# ziv976688
§Úªº§xÃøÂI¬O¦bµLªk¨Ì²Ä4¬q¼Æ¦r¿ï¾Ü"¥Ñ¤j¦Ó¤p"ªº¶¶§Ç~
>> ¥Ñ¤j¦Ü¤p¶}±ÒÀɮסAקï¦p¤U¬õ¦r³¡¤À¡A½Ð´ú¸Õ¬Ý¬Ý¡AÁÂÁÂ
Private Sub CommandButton1_Click()
Dim Path As String, a, Ar(1 To 1000, 1 To 2)
Nrange = "1878" ' InputBox("½Ð¿é¤JDATA!ªº¶}¼ú´Á¼Æ", "¿é¤J´Á¼Æ")
Tm = Timer
[L1] = ""
Application.DisplayAlerts = False
Set fs = CreateObject("Scripting.FileSystemObject")
Path = ThisWorkbook.Path
a = Path & "\7C¾÷"
Set f = fs.GetFolder(a)
Set fc = f.Files
For Each f1 In fc
n = n + 1
Ar(n, 1) = a & "\" & f1.Name
Ar(n, 2) = Split(Split(f1.Name, "_")(3), "-")(0)
Next
For i = 1 To UBound(Ar)
For j = i + 1 To UBound(Ar)
If Ar(i, 2) < Ar(j, 2) Then
a = Ar(i, 1)
Ar(i, 1) = Ar(j, 1)
Ar(j, 1) = a
End If
Next j
Next i
For i = 1 To n
Set WB = Workbooks.Open(Ar(i, 1))
WB.Close
Next
With Sheets("Sheet1")
.[A1] = Nrange
.[A2].Formula = "=CountA(M1:GZ1) / 2 & ""Ó""": .[A2] = .[A2].Value
.[A3] = "¶}¼ú¸¹½X"
...
... |
|