- ©«¤l
- 2035
- ¥DÃD
- 24
- ºëµØ
- 0
- ¿n¤À
- 2031
- ÂI¦W
- 0
- §@·~¨t²Î
- Win7
- ³nÅ骩¥»
- Office2010
- ¾\ŪÅv
- 100
- ©Ê§O
- ¨k
- µù¥U®É¶¡
- 2012-3-22
- ³Ì«áµn¿ý
- 2024-2-1
|
¦^´_ 20# GBKEE
¦^´_ 23# jackyliu - Option Explicit
- Sub ex()
- Dim D As Object, E As Variant, cts As Integer
-
- Set D = CreateObject("Scripting.dictionary") ' ¦r¨åª«¥ó
-
- For Each E In Sheet1.Range("A1").CurrentRegion.Rows ' ª«¥ó: A1 ©Ò©µ¦ù½d³òªº¦C
- If D.exists(E.Cells(1, 1) & E.Cells(1, 2) & E.Cells(1, 3) & E.Cells(1, 5)) = False Then _
- D(E.Cells(1, 1) & E.Cells(1, 2) & E.Cells(1, 3) & E.Cells(1, 5)) = E.Value
- Next
-
- With Sheet2
- .Cells.Clear
- cts = 1
- For Each E In D.KEYS
- .Cells(cts, "A").Resize(1, UBound(D(E), 2)).Value = D(E) ' Ū¨ú¦r¨åª«¥óªº ITEM (°}¦C)
- cts = cts + 1
- Next
- End With
- Set D = Nothing
- End Sub
½Æ»s¥N½X ¥[¤J¤F¹LÂo§PÂ_¡AIf D.exists(E.Cells(1, 1) & E.Cells(1, 2) & E.Cells(1, 3) & E.Cells(1, 5)) = False Then ....¡A
jackyliu ½Ð¦A¸Õ¬Ý¬Ý¡I |
|