- ©«¤l
- 4901
- ¥DÃD
- 44
- ºëµØ
- 24
- ¿n¤À
- 4916
- ÂI¦W
- 255
- §@·~¨t²Î
- Windows 7
- ³nÅ骩¥»
- Office 20xx
- ¾\ŪÅv
- 150
- ©Ê§O
- ¨k
- ¨Ó¦Û
- ¥x¥_
- µù¥U®É¶¡
- 2010-4-30
- ³Ì«áµn¿ý
- 2024-11-25
|
¥»©«³Ì«á¥Ñ Hsieh ©ó 2011-12-13 11:31 ½s¿è
- Sub ex()
- Dim Ar()
- With Sheet1
- For j = 2 To .[A2].End(xlDown).Row '±q²Ä2¦C¶}©l¨ì¸ê®Æµ²§ôªº¦C¦ì§@°j°é
- For i = 2 To .Cells(j, 1).End(xlToRight).Column Step 2 '±q²Ä2Äæ¶}©l¦V¥k¨ì¸Ó¦C¸ê®Æµ²§ôÄæ¦ì¡A¨C¦¸°j°é¦V¥k¥[2Äæ
- ReDim Preserve Ar(s) 'ÂX¥R°ÊºA°}¦C¤j¤p
- Ar(s) = Array(.Cells(j, 1).Value, "'" & .Cells(j, i).Text, .Cells(j, i + 1).Value) '¼g¤J°ÊºA°}¦C
- s = s + 1 'µ¥«Ý¤U¤@¦¸ÂX¥R°}¦C¤j¤p
- Next
- Next
- End With
- Sheet2.[B2].Resize(s, 3) = Application.Transpose(Application.Transpose(Ar)) '±N°}¦C¼g¤J¤u§@ªí
- End Sub
½Æ»s¥N½X ¦^´_ 3# imzues |
|