- ©«¤l
- 262
- ¥DÃD
- 8
- ºëµØ
- 0
- ¿n¤À
- 280
- ÂI¦W
- 17
- §@·~¨t²Î
- xp
- ³nÅ骩¥»
- Office 2007
- ¾\ŪÅv
- 20
- ©Ê§O
- ¨k
- ¨Ó¦Û
- HK
- µù¥U®É¶¡
- 2015-8-11
- ³Ì«áµn¿ý
- 2024-11-19
|
try this:- Sub zz()
- Dim ar, b(), d As Object, f, k, t
- Set d = CreateObject("scripting.dictionary")
- ar = Sheets(1).[b1048576].End(3).CurrentRegion.Value
- For i = 1 To UBound(ar)
- d(ar(i, 1)) = ""
- Next
- f = Application.GetOpenFilename
- If f = "Fasle" Or f = "" Then Exit Sub
- Application.ScreenUpdating = 0
- Workbooks.Open Filename:=f, Password:="122333"
- ar = Sheets(1).[b1048576].End(3).CurrentRegion.Value
- ReDim b(UBound(ar, 2) - 1)
- ActiveWorkbook.Close 0
- For i = 1 To UBound(ar)
- If d.exists(ar(i, 1)) Then
- For j = 1 To UBound(ar, 2)
- b(j - 1) = ar(i, j)
- Next
- d(ar(i, 1)) = b
- End If
- Next
- t = d.items
- Sheets(1).[b1].End(4).Select
- Sheets(1).[b1].End(4).Resize(d.Count, UBound(ar, 2)) = Application.Transpose(Application.Transpose(t))
- Application.ScreenUpdating = 1
- End Sub
½Æ»s¥N½X |
|