- ©«¤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
|
¦^´_ 1# joslau - Option Explicit
- Sub Ex()
- Dim Ar(), i As Integer, S As Integer
- i = 2
- With ActiveSheet
- Do While .Cells(i, "C") <> ""
- If .Cells(i, "A") & .Cells(i, "B") <> "" Then
- S = S + 1
- ReDim Preserve Ar(1 To 4, 1 To S) '°}¦C:«¸m ²Ä¤Gºûªº¤¸¯À¤WÈ
- Ar(1, S) = .Cells(i, "A")
- Ar(2, S) = .Cells(i, "B")
- Ar(3, S) = .Cells(i, "C")
- Ar(4, S) = .Cells(i, "C")
- Else
- Ar(4, S) = Ar(4, S) & "," & .Cells(i, "C")
- End If
- i = i + 1
- Loop
- .Range("F2").Resize(S, 4) = Application.Transpose(Ar)
- End With
- End Sub
½Æ»s¥N½X |
|