- ©«¤l
- 4901
- ¥DÃD
- 44
- ºëµØ
- 24
- ¿n¤À
- 4916
- ÂI¦W
- 112
- §@·~¨t²Î
- Windows 7
- ³nÅ骩¥»
- Office 20xx
- ¾\ŪÅv
- 150
- ©Ê§O
- ¨k
- ¨Ó¦Û
- ¥x¥_
- µù¥U®É¶¡
- 2010-4-30
- ³Ì«áµn¿ý
- 2025-5-9
               
|
¦^´_ 3# marklos - Sub ex()
- Dim ar()
- Set d = CreateObject("Scripting.Dictionary")
- With Sheets("Sheet1")
- For Each a In .Range(.[A1], .[A1].End(xlDown))
- x = Join(Application.Transpose(Application.Transpose(a.Resize(, 10).Value)), Chr(9))
- If IsEmpty(d(x)) Then
- d(x) = x
- y = Split(x, Chr(9))
- If a.Offset(, 3) <> "" Then
- For i = 1 To 2
- If i = 2 Then y(0) = ""
- ReDim Preserve ar(s)
- ar(s) = y
- s = s + 1
- Next
- Else
- ReDim Preserve ar(s): ar(s) = y: s = s + 1
- End If
- End If
- Next
- End With
- With Sheets("Sheet3")
- Application.DisplayAlerts = False
- .[A1].Resize(s, 10) = Application.Transpose(Application.Transpose(ar))
- Application.DisplayAlerts = True
- End With
- End Su
½Æ»s¥N½X |
|