- ©«¤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
|
¦^´_ 5# freeffly
Ar( 2 TO 10 ,1 TO 3) ¬Û·í©ó¤u§@ªíªº[A2:C10]½d³òªº¤j¤p¦ì¸m
²Ä¤@ºû¤¸¯À(2 T0 10 ) ¬Û·í©ó¤u§@ªíªº²Ä2¦C¨ì²Ä10¦C
²Ä¤Gºû¤¸¯À(1 T0 3 ) ¬Û·í©ó¤u§@ªíªº²Ä1Äæ¨ì²Ä3Äæ
A(2,1)=[A2],A(2,2)=[B2],A(2,3)=[C2]
A(3,1)=[A3],A(3,2)=[B3],A(3,3)=[C3]
A(4,1)=[A4],A(4,2)=[B3],A(4,3)=[C3]- 'UBound ¨ç¼Æ ¶Ç¦^ LongÈ¡Aªí¥Ü«ü©w°}¦C¬Yºû³Ì¤j¥i¨Ï¥Îªº°}¦C¯Á¤Þ¡C
- Sub EX()
- Dim Ar()
- Ar = [A2:C10].Value '½Ð¥ý¦Û¦æ¦b[A1:C10]½d³ò¤º«Ø¥ß¸ê®Æ
- 'UBound(Ar) Ar²Ä¤@ºû³Ì¤j¥i¨Ï¥Îªº°}¦C¯Á¤Þ
- 'UBound(Ar,2) Ar²Ä¤Gºû³Ì¤j¥i¨Ï¥Îªº°}¦C¯Á¤Þ
- [E1].Resize(UBound(Ar), UBound(Ar, 2)) = Ar
- [K1].Resize(UBound(Ar, 2), UBound(Ar)) = Application.WorksheetFunction.Transpose(Ar)
- '¨Ï¥ÎÂà¸m¨ç¼Æ Application.WorksheetFunction.Transpose
- [E11].Resize(1, UBound(Ar, 2)) = Application.Index(Ar, 2)
- 'Application.Index(Ar, 2)->AR²Ä¤@ºûªº²Ä2¦C
- [E13].Resize(UBound(Ar, 2), 1) = Application.Transpose(Application.Index(Ar, 2))
- '¨Ï¥ÎÂà¸mAR²Ä¤@ºûªº²Ä2¦C
- End Sub
½Æ»s¥N½X ¦p Ar = [A1:C10].Value ->Ar(1 To 10, 1 To 3) |
|