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

[µo°Ý] ±N¶}±Ò«áÀɮתº«ü©w¤º®e¨Ì§Ç½Æ»s¶K¤W¡C

¦^´_ 4# ziv976688

¥i§_³Ò¾r±z±N¦U¤w¶}±ÒªºÀɮפº¤§"¾÷²vªí!"A&B¤GÄ檺¤º®e½Æ»s«á¡A
¨Ì§Ç¥Ñ¥DÀɤ§"Sheet1!"ªºM1©¹¥k¶K¤Wªºµ{¦¡»yªk¤@¨Ö½ç±Ð¡C
>> µ{¦¡¦p¤U¬õ¦r¡A½Ð´ú¸Õ¬Ý¬Ý¡AÁÂÁÂ

For i = 1 To UBound(Ar)    '¥Ñ¤j¦Ü¤p±Æ§Ç
    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
   
    fileOrg = ActiveWorkbook.Name
    C = 13
    For i = 1 To n
        Set WB = Workbooks.Open(Ar(i, 1))
        With Sheets(1)
            If .FilterMode Then .ShowAllData
            .Range("a1:b" & .[a65536].End(3).Row).Copy Workbooks(fileOrg).Sheets("Sheet1").Cells(1, C)
             C = C + 2
        End With
        WB.Close
    Next
   

    With Sheets("Sheet1")
        .[A1] = Nrange
        .[A2].Formula = "=CountA(M1:GZ1) / 2 & ""­Ó""": .[A2] = .[A2].Value
        .[A3] = "¶}¼ú¸¹½X"
        .[A4:A10].Formula = "=IF(A$1="""","""",VLOOKUP(A$1,DATA!$A:$H,ROW()-2,

TOP

¦^´_ 3# samwang
·PÁ±zªº«ü¾É

¥Ñ¤j¦Ó¤p¶}±ÒÀɮתº»Ý¨D~OK¤F~·P®¦

¤£¦n·N«ä¡A¥i§_³Ò¾r±z±N¦U¤w¶}±ÒªºÀɮפº¤§"¾÷²vªí!"A&B¤GÄ檺¤º®e½Æ»s«á¡A
¨Ì§Ç¥Ñ¥DÀɤ§"Sheet1!"ªºM1©¹¥k¶K¤Wªºµ{¦¡»yªk¤@¨Ö½ç±Ð¡C
ÁÂÁ±z

TOP

¦^´_ 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"
...
...

TOP

¥»©«³Ì«á¥Ñ ziv976688 ©ó 2021-8-23 08:18 ½s¿è

§Úªº§xÃøÂI¬O¦bµLªk¨Ì²Ä4¬q¼Æ¦r¿ï¾Ü"¥Ñ¤j¦Ó¤p"ªº¶¶§Ç~
¦]¬°µL½×±N"7C¾÷"¸ê®Æ§¨¤ºªºÀɮצWºÙ»¼¼W©Î»¼´î±Æ§Ç¡A
Àɮ׶}±Òªº¶¶§Ç³£¬O"¥Ñ¤p¦Ó¤j"¡A
©Ò¥H¤£ª¾¹D¦p¦ó°_©l½s¼gµ{¦¡½X ?

Àµ½Ð¦U¦ì¤j¤jÀ°¦£©M«ü±Ð ! ÁÂÁ !

TOP

        ÀR«ä¦Û¦b : ¯¸¦b¥b¸ô¡A¤ñ¨«¨ì¥Ø¼Ð§ó¨¯­W¡C
ªð¦^¦Cªí ¤W¤@¥DÃD