- ©«¤l
- 552
- ¥DÃD
- 3
- ºëµØ
- 0
- ¿n¤À
- 578
- ÂI¦W
- 0
- §@·~¨t²Î
- win7
- ³nÅ骩¥»
- office 2010
- ¾\ŪÅv
- 50
- ©Ê§O
- ¨k
- µù¥U®É¶¡
- 2015-2-8
- ³Ì«áµn¿ý
- 2024-7-9
|
¦^´_ 1# yangjie
§A¼gªº»yªk©M¬[ºc³£¤£¹ï¡I
µ{¦¡¤]¤£¥Î³o¼Ë¸¨¸¨ªø¡I- Sub Transpose2()
- AR = Sheets("test1").Range(Cells(1, 1), Cells(10, 3)).Value'¤U±µù¸Ñªº³¡¥÷¬O§A즳ªºµ{¦¡¡A¥un³o¤@¦C´N¥i¥H§¹¦¨
- 'AR(k) = Sheets("test1").Range(Cells(1, 1), Cells(10, 1)).Value
- 'AR(0) = Sheets("test1").Range(Cells(1, 1), Cells(10, 1)).Value
- 'k = k + 1
- 'ReDim Preserve AR(k)
- 'AR(1) = Sheets("test1").Range(Cells(1, 2), Cells(10, 2)).Value
- ' k = k + 1
- 'ReDim Preserve AR(k)
- 'AR(2) = Sheets("test1").Range(Cells(1, 3), Cells(10, 3)).Value
- Cells(1, 10).Resize(3, UBound(AR, 1)) = "" '²M°£
- Cells(5, 10).Resize(UBound(AR, 1), 3) = ""' '²M°£
- Cells(1, 10).Resize(3, UBound(AR, 1)) = Application.Transpose(AR)'³o¦C¬O±qJ1Äæ¨ìS3¡A©¹¾îªº¤è¦V¶K¤W
- Cells(5, 10).Resize(UBound(AR, 1), 3) = AR'³o¦C¬O±qJ5¨ìL14©Mì¨Óªº¤è¦V¤@¼Ë
- End Sub
½Æ»s¥N½X |
|