ªð¦^¦Cªí ¤W¤@¥DÃD µo©«

[µo°Ý] (¤w¸Ñ¨M)Ãö©ó°}¦C

[µo°Ý] (¤w¸Ñ¨M)Ãö©ó°}¦C

¥»©«³Ì«á¥Ñ freeffly ©ó 2012-2-22 17:02 ½s¿è

½Ð°Ý¬°¦ó§ÚÄ檺°}¦C¥i¥H¥X²{§Ú­nªºµ²ªG
¥i¬O¦æªº°}¦C¤£¦æ?
§Úªº¤èªk¤£¹ï¶Ü?
°}¦C.rar (5.86 KB)
¦r¨å¨â¦U¦r ÁÙ¯uÃø²z¸Ñ

ActiveCell.Resize(1, 5) = Array("AA01", "AA02", "AA05", "AA07", "AA08")
    ActiveCell.Resize(5, 1) = Application.Transpose(Array("AA01", "AA02", "AA05", "AA07", "AA08"))
§Aªº°}¦C¬O¤@ºû¾î¦V°}¦C
­n©ñ¦bª½¦VÀx¦s®æ°Ï°ì¥²¶·­nÂà¸m

TOP

¦^´_ 2# chin15


    ¨º¬°¤°»òªþ¥[Àɪº³o¦U¨Ò¤l¥i¥H¤£¥ÎÂà¸m?
Book1.rar (9.24 KB)
¦r¨å¨â¦U¦r ÁÙ¯uÃø²z¸Ñ

TOP

¦^´_ 3# freeffly
ReDim brr(1 To 2, 1 To n + 1) ´N¶·­nÂà¸m
  1. Private Sub CommandButton1_Click()
  2. Dim arr() As String, brr() As String
  3. s = Range("a1").Value
  4. arr = Split(s, ",")
  5. n = UBound(arr)
  6. ReDim brr(1 To 2, 1 To n + 1)
  7. For i = 1 To n + 1
  8. If Right(arr(i - 1), 3) = "(¤k)" Then
  9.     brr(1, i) = Left(arr(i - 1), Len(arr(i - 1)) - 3)
  10.     brr(2, i) = "¤k"
  11.   Else
  12.    brr(1, i) = arr(i - 1)
  13.     brr(2, i) = "¤k"
  14.   End If
  15. Next
  16. Range("b6").Resize(n, 2) = Application.Transpose(brr)
  17. End Sub
½Æ»s¥N½X

TOP

¦^´_ 4# GBKEE


    ¨º¤@¥y¬OÂà¸mªº¥\¯à³á
     ¦]¬°³o¦UªF¦è¬OªB¤Íµ¹§Úªº
     §ÚÁ٬ݤ£¤ÓÀ´­n°Ý¥L¬°¤°»ò°}¦Cµ²ªG¸ò§Ú¤£¤@¼Ë
     ¨SªÅ¦^µª§Ú
      
      ©Ò¥H°}¦C¥Î¦b¦æªº³¡¥÷´N­nÂà¸m¤~¯à±o¨ìµ²ªGÅo
¦r¨å¨â¦U¦r ÁÙ¯uÃø²z¸Ñ

TOP

¦^´_ 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]
  1. 'UBound ¨ç¼Æ ¶Ç¦^ Long­È¡Aªí¥Ü«ü©w°}¦C¬Yºû³Ì¤j¥i¨Ï¥Îªº°}¦C¯Á¤Þ¡C
  2. Sub EX()
  3. Dim Ar()
  4. Ar = [A2:C10].Value '½Ð¥ý¦Û¦æ¦b[A1:C10]½d³ò¤º«Ø¥ß¸ê®Æ
  5. 'UBound(Ar) Ar²Ä¤@ºû³Ì¤j¥i¨Ï¥Îªº°}¦C¯Á¤Þ
  6. 'UBound(Ar,2) Ar²Ä¤Gºû³Ì¤j¥i¨Ï¥Îªº°}¦C¯Á¤Þ
  7. [E1].Resize(UBound(Ar), UBound(Ar, 2)) = Ar

  8. [K1].Resize(UBound(Ar, 2), UBound(Ar)) = Application.WorksheetFunction.Transpose(Ar)
  9. '¨Ï¥ÎÂà¸m¨ç¼Æ Application.WorksheetFunction.Transpose

  10. [E11].Resize(1, UBound(Ar, 2)) = Application.Index(Ar, 2)
  11. 'Application.Index(Ar, 2)->AR²Ä¤@ºûªº²Ä2¦C

  12. [E13].Resize(UBound(Ar, 2), 1) = Application.Transpose(Application.Index(Ar, 2))
  13. '¨Ï¥ÎÂà¸mAR²Ä¤@ºûªº²Ä2¦C
  14. End Sub
½Æ»s¥N½X
¦p Ar = [A1:C10].Value ->Ar(1 To 10, 1 To 3)

TOP

¦^´_ 6# GBKEE


    ÁÂÁ¤j¤jªá³o»ò¦h®É¶¡¦^ÂÐ
     ¥ý¦¬¤U¨Ó¬ã¨s¤@¤U
¦r¨å¨â¦U¦r ÁÙ¯uÃø²z¸Ñ

TOP

        ÀR«ä¦Û¦b : ¤H¥Í¨S¦³©Ò¦³Åv¡A¥u¦³¥Í©Rªº¨Ï¥ÎÅv¡C
ªð¦^¦Cªí ¤W¤@¥DÃD