- ©«¤l
- 227
- ¥DÃD
- 3
- ºëµØ
- 1
- ¿n¤À
- 273
- ÂI¦W
- 0
- §@·~¨t²Î
- XP
- ³nÅ骩¥»
- XP
- ¾\ŪÅv
- 20
- ©Ê§O
- ¤k
- µù¥U®É¶¡
- 2011-3-22
- ³Ì«áµn¿ý
- 2013-1-29
|
- Option Explicit
- Sub test()
- Dim n%, c%, i%, j%, m%, arr(), rng
- n = [a65536].End(3).Row
- c = [iv1].End(1).Column
- rng = [a1].Resize(n, c)
- For i = 2 To c
- For j = 2 To n
- If rng(j, i) <> "" Then
- m = m + 1
- ReDim Preserve arr(1 To 3, 1 To m)
- arr(1, m) = rng(1, i)
- arr(2, m) = rng(j, 1)
- arr(3, m) = rng(j, i)
- End If
- Next
- Next
- Sheet2.[a1].Resize(m, 3) = Application.Transpose(arr)
- End Sub
½Æ»s¥N½X |
|