- ©«¤l
- 1572
- ¥DÃD
- 16
- ºëµØ
- 2
- ¿n¤À
- 1521
- ÂI¦W
- 0
- §@·~¨t²Î
- xp
- ³nÅ骩¥»
- office 2003
- ¾\ŪÅv
- 150
- ©Ê§O
- ¨k
- µù¥U®É¶¡
- 2010-5-1
- ³Ì«áµn¿ý
- 2016-1-13
|
- Private Sub CommandButton1_Click()
- Dim arr(), i%, j%, m%, a
- For i = 3 To [e65536].End(3).Row
- If InStr(Cells(i, 5), vbLf) = 0 Then
- m = m + 1
- ReDim Preserve arr(1 To 2, 1 To m)
- arr(1, m) = Cells(i, 4): arr(2, m) = Cells(i, 5)
- Else
- a = Split(Cells(i, 5), vbLf)
- For j = 0 To UBound(a)
- m = m + 1
- ReDim Preserve arr(1 To 2, 1 To m)
- arr(1, m) = Cells(i, 4): arr(2, m) = a(j)
- Next
- End If
- Next
- [g3].Resize(m, 2) = Application.Transpose(arr)
- End Sub
½Æ»s¥N½X |
|