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

[µo°Ý] ¥Ñ¤p¦Ó¤j§ï¬°¥Ñ¤j¦Ó¤pªº»yªk¬ã²ß¡C

[µo°Ý] ¥Ñ¤p¦Ó¤j§ï¬°¥Ñ¤j¦Ó¤pªº»yªk¬ã²ß¡C

TEST_0914.rar (227.47 KB)
±N¤U¦Cªº·j´M¶}±Ò±Æ§Ç~¥H¥Ñ¤p¦Ó¤j(¶¶§Ç)§ï¬°¥Ñ¤j¦Ó¤p(­Ë§Ç)¡C
½Ð°Ý»yªk­n¦p¦ó½s¼g¡H
ÁÂÁ¡I


Private Sub CommandButton1_Click()
Dim Path$, xD1, A, Ar(1 To 5000, 1 To 2), Ar1(), Arr, Brr(1 To 7), Crr, xD, T%, i&, j&, k&
Application.DisplayAlerts = False: Application.ScreenUpdating = False
Set xD = CreateObject("Scripting.Dictionary")
Set xD1 = CreateObject("Scripting.Dictionary")
fileOrg = ActiveWorkbook.Name
Tm = Timer
Nrange = InputBox("½Ð¿é¤JDATA!ªº¶}¼ú´Á¼Æ", "¿é¤J´Á¼Æ")
num = "100" 'InputBox("½Ð¿é¤J®ÄªGÀÉA¡JH½Æ»sªº´Á¶Z¼Æ½d³ò", "¿é¤J¶Z´Á¼Æ")
Order = "0" ' InputBox("½Ð¿é¤J¼W¥[ªºÅÞ¿è±ø¥ó±ø¥ó¤§°_¨´§Ç¸¹", "¿é¤J§Ç¸¹(1~99)©Î¤£¼W¥[(«öEnter)")
Ncount = "1" ' InputBox("½Ð¿é¤JÅçÃÒª©ªº³sÄò¦¸¼Æ", "¿é¤J¦¸¼Æ(1~10)")
Sheets("DATA").[L1:L4] = ""

Set fs = CreateObject("Scripting.FileSystemObject")
A = ThisWorkbook.Path     '¨C­Ó¸ê®Æ§¨¦WºÙ¸Ë¤JAr
Set f = fs.GetFolder(A)
Set fc = f.SubFolders
For Each f1 In fc
    n = n + 1: Ar(n, 1) = f1.Path
    Ar(n, 2) = Split(Split(f1.Name, "_")(4), "-")(0): xD1(Ar(n, 2)) = 1
Next

For Each Ky In xD1
    For x = 1 To n          '¶}±ÒAr,§ä¦PÃþ«¬¸ê®Æ§¨¡AÀɦW¦³"¾÷"¸Ë¤JAr1
        If Ar(x, 2) = Ky Then
            Set f = fs.GetFolder(Ar(x, 1))
            Set fc = f.Files
            For Each f1 In fc
                If InStr(f1.Path, "¾÷") Then
                    ReDim Preserve Ar1(n1)
                    Ar1(n1) = f1.Path: n1 = n1 + 1
                End If
            Next f1
        End If
    Next x
    C = 13
    If n1 > 0 Then
        For i1 = 0 To n1 - 1  '¶}±ÒAr1¡Acopy A¡BBÄæ¸ê®Æ¨ìSheet1 MÄæ¶}©l©¹¥k
            Set WB = Workbooks.Open(Ar1(i1))
            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
    End If

'.................................................................................................................

¦^´_ 22# samwang
´ú¸Õµ²ªG : §¹¥þ²Å¦X»Ý¨D
¸U¤À·P¿E±zªº­@¤ß«ü¾É©M¼ö¤ßÀ°¦£~·P®¦

TOP

¦^´_ 21# ziv976688

¦pªG«e3¤jªº¤ñ¹ï¼Æ¦r¤£ÅÜ(§Y¤£¥]¬A"0")¡A¦ý«e3¤pªº¤ñ¹ï¼Æ¦r§ï¬°¦³¥]¬A"0"¡A
½Ð±Ð¡G«e3¤p¤ñ¹ïªº·s»yªk­n¦p¦ó½s¼g¡H
>> ¦pªþ¥ó¡A½Ð´ú¸Õ¬Ý¬Ý¡AÁÂÁÂ

TOP

¥»©«³Ì«á¥Ñ ziv976688 ©ó 2021-9-22 13:59 ½s¿è

¦^´_ 18# samwang
»yªk¬ã²ß¡G«e3¤pªº¤ñ¹ï¼Æ¦r¦³¥]¬A"0"

¹ê¦b¬O¤£¦n·N«ä~¦³­Ó»yªkÅܤơAÀµ½Ð±z¦A½ç±Ð~
¦pªG«e3¤jªº¤ñ¹ï¼Æ¦r¤£ÅÜ(§Y¤£¥]¬A"0")¡A¦ý«e3¤pªº¤ñ¹ï¼Æ¦r§ï¬°¦³¥]¬A"0"¡A
½Ð±Ð¡G«e3¤p¤ñ¹ïªº·s»yªk­n¦p¦ó½s¼g¡H
¸Ô¦p½d¨ÒÀÉ¡G7«e3¤j&¤p_0_1894´Á_2­Ó_1¦¸(»Ý¨D®ÄªGÀÉ)
ÁÂÁ±z

«e3¤pªº¤ñ¹ï¼Æ¦r¦³¥]¬A0_0922.rar (216.95 KB)

TOP

¦^´_ 19# samwang
´ú¸Õµ²ªG : §¹¥þ²Å¦X»Ý¨D
«D±`ÁÂÁ±zªº«ü¾É©MÀ°¦£~·P®¦

TOP

¦^´_ 16# ziv976688


½Ð°Ý¡GH_·j´M(²Î)¦rÀÉ(¥DÀÉ_Åã¥Ü¼Æ­È)_0917_samwang¬O§_¯à~¦p¦PH_·j´M(¾÷)¦rÀÉ(¥DÀÉ)_0917_samwang~
¤@¼Ë³£¾A¥Î©ó´ú¸Õ_1894(³æ¼h=0000)©M´ú¸Õ_1894(Âù¼h=0000+0000)¡H
>> ¤£ª¾18#ªºµ{¦¡½X¬O§_¦³¸Ñ¨M¦¹°ÝÃD? ½Ð´ú¸Õ¬Ý¬Ý¡AÁÂÁÂ

TOP

¦^´_ 16# ziv976688


¦A¥HH_·j´M(²Î)¦rÀÉ(¥DÀÉ_Åã¥Ü¼Æ­È)_0917_samwang°õ¦æ«á~
¦bµ{¦¡½X¦C68·|²£¥Í°»¿ù~¸Ô¦p¹Ï¤ù¡C
>> ¤w§ó·s¦pªþ¥ó¡A½Ð¦A´ú¸Õ¬Ý¬Ý¡AÁÂÁ   

H_·j´M(²Î)¦rÀÉ(¥DÀÉ_Åã¥Ü¼Æ­È)_0922.zip (44.77 KB)

TOP

¥»©«³Ì«á¥Ñ ziv976688 ©ó 2021-9-19 14:19 ½s¿è

¸É¥R~
´ú¸Õ_1894(³æ¼h=0000)¤ºªºH_·j´M(¾÷)¦rÀÉ(¥DÀÉ)_0917_samwang©MH_·j´M(²Î)¦rÀÉ(¥DÀÉ_Åã¥Ü¼Æ­È)_0917_samwang»P
´ú¸Õ_1894(Âù¼h=0000+0000)¤ºªºH_·j´M(¾÷)¦rÀÉ(¥DÀÉ)_0917_samwang©MH_·j´M(²Î)¦rÀÉ(¥DÀÉ_Åã¥Ü¼Æ­È)_0917_samwang
¬O¬Û¦Pªº¡C

TOP

¦^´_ 14# samwang
¤£¦n·N«ä¡A¦³­Ó¤p°ÝÃD¡A½Ð±z«ü±Ð~ÁÂÁ±z¡I

·í¸ê®Æ§¨¦WºÙ=7C_0_1894´Á_100_1845-1893_10+1796-1892_10_1¦¸_1-49¤ºªº¦UÀɮסG
¥HH_·j´M(¾÷)¦rÀÉ(¥DÀÉ)_0917_samwang°õ¦æ~²£¥Í¤U¦C¦@5­Óªº¦³(²Î)ÃöÁä¦rªºÀÉ®×~
7²Î_0_1894´Á_100_1889_2­Ó_1¦¸~7²Î_0_1894´Á_100_1893_2­Ó_1¦¸

¦A¥HH_·j´M(²Î)¦rÀÉ(¥DÀÉ_Åã¥Ü¼Æ­È)_0917_samwang°õ¦æ«á~
²£¥Í7«e3¤j&¤p_0_1894´Á_5­Ó_1¦¸ªº®ÄªGÀɬOOKªº¡C
EX¡Gªþ¥ó½d¨Ò~´ú¸Õ_1894(Âù¼h=0000+0000)
´ú¸Õ_1894(Âù¼h=0000+0000).rar (302.5 KB)

·í¸ê®Æ§¨¦WºÙ= 7C_0_1894´Á_100_1874-1893_10_1¦¸_1-49¤ºªº¦UÀɮסG
¥HH_·j´M(¾÷)¦rÀÉ(¥DÀÉ)_0917_samwang°õ¦æ~²£¥Í¤U¦C¦@5­Óªº¦³(²Î)ÃöÁä¦rªºÀÉ®×~
7²Î_0_1894´Á_100_1889_1­Ó_1¦¸~7²Î_0_1894´Á_100_1893_1­Ó_1¦¸

¦A¥HH_·j´M(²Î)¦rÀÉ(¥DÀÉ_Åã¥Ü¼Æ­È)_0917_samwang°õ¦æ«á~
¦bµ{¦¡½X¦C68·|²£¥Í°»¿ù~¸Ô¦p¹Ï¤ù¡C

EX¡Gªþ¥ó½d¨Ò~´ú¸Õ_1894(³æ¼h=0000)
´ú¸Õ_1894(³æ¼h=0000).rar (229.94 KB)

ºî¤W©Ò­z¡G
H_·j´M(²Î)¦rÀÉ(¥DÀÉ_Åã¥Ü¼Æ­È)_0917_samwang³£¬O¥H¦U¦³(²Î)ÃöÁä¦rÀɮתº²Ä5¬q¼Æ¦r§@·j´MÅÞ¿è¡A
¥B¦U³Q·j´MÀɮתºB¡GEÄæ®æ¦¡³£¬Û¦P¡C

½Ð°Ý¡GH_·j´M(²Î)¦rÀÉ(¥DÀÉ_Åã¥Ü¼Æ­È)_0917_samwang¬O§_¯à~¦p¦PH_·j´M(¾÷)¦rÀÉ(¥DÀÉ)_0917_samwang~
¤@¼Ë³£¾A¥Î©ó´ú¸Õ_1894(³æ¼h=0000)©M´ú¸Õ_1894(Âù¼h=0000+0000)¡H

¦pªG¬°§_~
½Ð°Ý¡G´ú¸Õ_1894(³æ¼h=0000)ªºH_·j´M(²Î)¦rÀÉ(¥DÀÉ_Åã¥Ü¼Æ­È)_0917_samwangÀ³¸Ó¦p¦ó­×¥¿¡H

¥H¤W  Àµ½Ð½ç±Ð¡I  ÁÂÁ±z¡I

TOP

¦^´_ 14# samwang
samwang¤j¤j :
´ú¸Õµ²ªG : §¹¥þ²Å¦X»Ý¨D
¸U¤À·P¿E±zªÖ¸òÃD­@¤ß«ü¾É©M¼ö¤ßÀ°¦£~¨ü´f¨}¦h~·P®¦

TOP

        ÀR«ä¦Û¦b : µêªÅ¦³ºÉ¡D§ÚÄ@µL½a¡AµoÄ@®e©ö¦æÄ@Ãø¡C
ªð¦^¦Cªí ¤W¤@¥DÃD