- ©«¤l
- 4901
- ¥DÃD
- 44
- ºëµØ
- 24
- ¿n¤À
- 4916
- ÂI¦W
- 256
- §@·~¨t²Î
- Windows 7
- ³nÅ骩¥»
- Office 20xx
- ¾\ŪÅv
- 150
- ©Ê§O
- ¨k
- ¨Ó¦Û
- ¥x¥_
- µù¥U®É¶¡
- 2010-4-30
- ³Ì«áµn¿ý
- 2024-11-26
|
¦^´_ 1# hugh0620 - Private Sub CommandButton1_Click()
- Dim Ay()
- Set d = CreateObject("Scripting.Dictionary")
- With Sheet2
- ar = .Range(.[B5], .[B5].End(xlDown).Offset(, 2))
- For i = 1 To UBound(ar, 1)
- mystr = Join(Application.Index(ar, i))
- d(mystr) = d.Count
- Next
- With Sheet1
- ar = .Range(.[B5], .[B5].End(xlDown).Offset(, 3))
- For i = 1 To UBound(ar, 1)
- mystr = Join(Array(ar(i, 1), ar(i, 2), ar(i, 3)))
- If d.exists(mystr) = False Then
- ReDim Preserve Ay(s)
- Ay(s) = Application.Index(ar, i)
- s = s + 1
- End If
- Next
- End With
- If s > 0 Then .[B65536].End(xlUp).Offset(1, 0).Resize(s, 4) = Application.Transpose(Application.Transpose(Ay))
- End With
- End Sub
½Æ»s¥N½X |
|