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

[µo°Ý] ¸ê®ÆÂà¸mªº¤p°ÝÃD

[µo°Ý] ¸ê®ÆÂà¸mªº¤p°ÝÃD



³o­ÓÂà¸mªº¤è¦¡,§Úª¦¤åª¦ª¦§ä¤£¨ìÃþ¦üªº¤è¦¡
¥i¬O¤Sı±oÀ³¸Ó¬O«Ü²³æ~Ãþ¦ü¤å³¹À³¸Ó¦³Ãþ¦üªº

¦b¬Y­Ó¤å³¹¦³¬Ý¨ì¤U­±ªº¥N½X:
Sub test()
    Dim arr
    arr = Range("a1:c3")
    Range("f1").Resize(UBound(arr, 2), UBound(arr)) = Application.WorksheetFunction.Transpose(arr)
End Sub

«Ü²³æªº´NÂà¸m¤F~
¥i¬O¥L¬O¾ã­Ó¸ê®Æ½d³òÂà¸m

¦ý§Ú¥u·Q­n¦p¹Ï¥Üªº,Âà¸m«á¸ê®ÆÅܦ¨¨âÄ椤´N¦n
Àµ½Ð¤j¤j­Ì «üÂI¤@¤G

¦^´_ 12# GBKEE


    ·PÁÂG¤j¸Ñ´b¡IÁÂÁ¡I

TOP

¦^´_ 11# boblovejoyce
  1. Option Explicit
  2. Sub Ex()
  3.     Dim Rng As Range, Ar1(), x As Integer, Ar2(), i As Integer
  4.     Dim Y As Integer, S As String
  5.     Set Rng = [F1]
  6.     Do While Rng <> ""
  7.         i = 0: Y = 1: S = ""
  8.         While Mid(Rng, Y, 1) Like "[A-z]"  '¬O¦r¥À
  9.             S = Mid(Rng, 1, Y)
  10.             Y = Y + 1
  11.         Wend
  12.         If S <> "" And S = Mid(Rng.Offset(i), 1, Y - 1) Then
  13.             ReDim Preserve Ar1(x + 1)
  14.             ReDim Ar2(i)
  15.             Ar2(i) = S
  16.             Do While S = Mid(Rng.Offset(i), 1, Y - 1)
  17.                 i = i + 1
  18.                 ReDim Preserve Ar2(i)
  19.                 Ar2(i) = Rng.Offset(i - 1, 1)
  20.             Loop
  21.             Ar1(x + 1) = Ar2
  22.             Set Rng = Rng.Offset(i)
  23.             x = x + 1
  24.         End If
  25.     Loop
  26.     ReDim Ar2(i)
  27.     For i = 0 To i
  28.         Ar2(i) = IIf(i > 0, i, "")
  29.     Next
  30.     Ar1(0) = Ar2
  31.    ' For i = 1 To UBound(Ar1)
  32.    '     [I1].Offset(i).Resize(, UBound(Ar1(i)) + 1) = Ar1(i) '¤@¦æ¤@¦æªº¼g¤J
  33.    ' Next
  34.    '*********** ¤@¦¸¼g¤J
  35.     [I1].Resize(UBound(Ar1) + 1, UBound(Ar2) + 1).Value = Application.Transpose(Application.Transpose(Ar1))
  36. End Sub
½Æ»s¥N½X
·P®¦ªº¤ß......(¦b³Â»¶®a±Ú°Q½×°Ï.¥Î¤ß¾Ç²ß·|¦³¶i¨Bªº)
¦ý¸ê·½µL­­,«á´©¦³­­,  ¤@¤Ñ1¤¸ªºÃÙ§U,¤H¤H¦³¯à¤O.

TOP

¦^´_ 9# GBKEE

ÁÂÁÂG¤j
¤£¹L¯u¦p¼Ó¤W©Ò»¡ªº,­Y¦³AA1,AM1³o¼Ëªº¦r²´ªº®É­Ô
´N·|¥X²{«¬ºA¤£²Å¦X

§Ú§Ö³t§ì¤F¤@¥÷¸ê°T,¦pªþ¥ó,Âà´«ªº®É­Ô
·|¥X²{«¬ºA¤£²Å¦X

    test0703.rar (22.26 KB)

TOP

¦^´_ 9# GBKEE


    ½Ð±ÐG¤j¡A°²³]¡A§Ú¦bFÄ檺¦WºÙ¤¤¦³A1,A2,AA1,AA2, AAA1,AAA2®É¡A­n«ç»ò­×§ï¡H

TOP

¦^´_ 8# boblovejoyce
¸Õ¸Õ¬Ý
  1. Option Explicit
  2. Sub Ex()
  3.     Dim Rng As Range, Ar1(), x As Integer, Ar2(), i As Integer
  4.     Set Rng = [F1]
  5.     Do While Rng <> ""
  6.         i = 0
  7.         If Mid(Rng, 1, 1) = Mid(Rng.Offset(i), 1, 1) Then
  8.             ReDim Preserve Ar1(x + 1)
  9.             ReDim Ar2(i)
  10.             Ar2(i) = Mid(Rng, 1, 1)
  11.             Do While Mid(Rng, 1, 1) = Mid(Rng.Offset(i), 1, 1)
  12.                 i = i + 1
  13.                 ReDim Preserve Ar2(i)
  14.                 Ar2(i) = Rng.Offset(i - 1, 1)
  15.             Loop
  16.             Ar1(x + 1) = Ar2
  17.             Set Rng = Rng.Offset(i)
  18.             x = x + 1
  19.         End If
  20.     Loop
  21.     ReDim Ar2(i)
  22.     For i = 0 To i
  23.         Ar2(i) = IIf(i > 0, i, "")
  24.     Next
  25.     Ar1(0) = Ar2
  26.     For i = 0 To UBound(Ar1)
  27.         [I1].Offset(i).Resize(, UBound(Ar1) + 1) = Ar1(i) '¤@¦æ¤@¦æªº¼g¤J
  28.     Next
  29.     '*********** ¤@¦¸¼g¤J
  30.     [I1].Resize(UBound(Ar1) + 1, UBound(Ar2) + 1).Value = Application.Transpose(Application.Transpose(Ar1))
  31. End Sub
½Æ»s¥N½X
·P®¦ªº¤ß......(¦b³Â»¶®a±Ú°Q½×°Ï.¥Î¤ß¾Ç²ß·|¦³¶i¨Bªº)
¦ý¸ê·½µL­­,«á´©¦³­­,  ¤@¤Ñ1¤¸ªºÃÙ§U,¤H¤H¦³¯à¤O.

TOP

¦^´_ 4# GBKEE

ªO¥D¤j¤j~
¨ä¹ê¬O·Q¸ß°Ý,¦p¤U¹Ï
¥ª¹Ï:¸g¹L¤j¤jªºµ{¦¡½X,¤w¸g¥i¥HÂà¸m¤F

¦ý¦pªG¤Ï¹L¨Ó,µ¹ªº¬O¥k¹Ï
«ç»ò±NF G Äæ¦ì ,Âন I J K©O?

  

TOP

¦^´_  GBKEE

wow~ÁÂÁª©¤j´£¨Ñ³oºØ¤è¦¡~
¨º¦³µL¥i¥H¤ÏÂà¦^¥h©O?

´N¹³¬O¦¹¨Ò,¥i¥HÂà­¼¨â¸ê®ÆÄæ
¦pªG ...
boblovejoyce µoªí©ó 2015-7-1 22:25


§A«üªº¬O¡H
  1.         .Cells(.Rows.Count + 2, 1).Resize(.Count, 2) = Ar
  2.        [F1].Resize(UBound(Ar, 2), 4) = Application.Transpose(Ar)
½Æ»s¥N½X

TOP

[ª©¥DºÞ²z¯d¨¥]
  • GBKEE(2015/7/2 07:00): ªþÀɮ׬ݬÝ

¦^´_ 4# GBKEE

wow~ÁÂÁª©¤j´£¨Ñ³oºØ¤è¦¡~
¨º¦³µL¥i¥H¤ÏÂà¦^¥h©O?

´N¹³¬O¦¹¨Ò,¥i¥HÂà­¼¨â¸ê®ÆÄæ
¦pªG¥u¦³¨â¸ê®ÆÄæ~¥i¥HÂà¦^¥h°}¦Cªº¼Ë¦¡¶Ü?

TOP

¥»©«³Ì«á¥Ñ lpk187 ©ó 2015-6-23 17:53 ½s¿è

¦^´_ 5# GBKEE


   Try¹Lª©¤jªºµ{¦¡½X«á¡Aª©¤j§A¤Ó±j¤j¤F¡A¤§«e¨S¤°»ò¾Ç¨ìwith...
¸g¹L³oµ{¦¡¯uÅý§Ú¾Ç¨ìÆZ«p¹êªº¸gÅç¡A­ì¨ÓWith ³o»ò¦n¥Î¡AGBKEEª©¤j¡A·PÁ¡I

TOP

        ÀR«ä¦Û¦b : ¬°¤H³B¥@­n¤p¤ß²Ó¤ß¡A¦ý¤£­n¡u¤p¤ß²´¡v¡C
ªð¦^¦Cªí ¤W¤@¥DÃD