- ©«¤l
 - 5923 
 - ¥DÃD
 - 13 
 - ºëµØ
 - 1 
 - ¿n¤À
 - 5986 
 - ÂI¦W
 - 0  
 - §@·~¨t²Î
 - win10 
 - ³nÅ骩¥»
 - Office 2010 
 - ¾\ŪÅv
 - 150 
 - ©Ê§O
 - ¨k 
 - ¨Ó¦Û
 - ¥xÆW°ò¶© 
 - µù¥U®É¶¡
 - 2010-5-1 
 - ³Ì«áµn¿ý
 - 2022-1-23 
 
           
 | 
                
¦^´_ 5# bear0925900003 - Option Explicit
 
 - Sub Ex()
 
 -     Dim D As Object, i As Integer
 
 -     Set D = CreateObject("SCRIPTING.DICTIONARY")
 
 -     With Sheets("SHEET1")                                         ''¤u§@ªíª«¥ó
 
 -         i = 1
 
 -         Do While .Cells(i, "A") <> ""                               '¤u§@ªí.ª«¥ó  ¥[. ¬°¦¹ª«¥óªº ¤lª«¥ó,¤èªk,ÄÝ©Ê
 
 -              'Do While .Range("A" & i) <> ""    '¤]¥i¥H¥Î Range
 
 -             D(.Cells(i, "A").Value) = D(.Cells(i, "A").Value) + .Cells(i, "B")
 
 -             i = i + 1
 
 -         Loop
 
 -     End With
 
 -     With Sheets("SHEET2")                                         ''¤u§@ªíª«¥ó
 
 -         i = 1
 
 -         Do While .Cells(i, "A") <> ""                               '¤u§@ªí.ª«¥ó  ¥[. ¬°¦¹ª«¥óªº ¤lª«¥ó,¤èªk,ÄÝ©Ê
 
 -              'Do While .Range("A" & i) <> ""    '¤]¥i¥H¥Î Range
 
 -             D(.Cells(i, "A").Value) = D(.Cells(i, "A").Value) + .Cells(i, "B")
 
 -             i = i + 1
 
 -         Loop
 
 -     End With
 
 -     If D.Count > 1 Then
 
 -         With Sheets("SHEET3")
 
 -             .[A1].Resize(D.Count) = Application.Transpose(D.KEYS)
 
 -             .[B1].Resize(D.Count) = Application.Transpose(D.ITEMS)
 
 -         End With
 
 -     End If
 
 - End Sub
 
  ½Æ»s¥N½X- Sub Ex_a()
 
 -     Dim D As Object, i As Integer, e As Variant
 
 -     Set D = CreateObject("SCRIPTING.DICTIONARY")
 
 -     For Each e In Array(Sheets("SHEET1"), Sheets("SHEET2"), Sheets("SHEET3"))
 
 -         With e
 
 -             i = 1
 
 -             Do While .Cells(i, "A") <> ""                              '¤u§@ªí.ª«¥ó  ¥[. ¬°¦¹ª«¥óªº ¤lª«¥ó,¤èªk,ÄÝ©Ê
 
 -                  'Do While .Range("A" & i) <> ""    '¤]¥i¥H¥Î Range
 
 -                 D(.Cells(i, "A").Value) = D(.Cells(i, "A").Value) + .Cells(i, "B")
 
 -                 i = i + 1
 
 -             Loop
 
 -         End With
 
 -     Next
 
 -    If D.Count > 1 Then
 
 -         With Sheets("SHEET4")
 
 -             .[A1].Resize(D.Count) = Application.Transpose(D.KEYS)
 
 -             .[B1].Resize(D.Count) = Application.Transpose(D.ITEMS)
 
 -         End With
 
 -     End If
 
 - End Sub
 
  ½Æ»s¥N½X |   
 
 
 
 |