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

[µo°Ý] Àx¦s®æ¦r¦êªø«×¤j©ó255

[µo°Ý] Àx¦s®æ¦r¦êªø«×¤j©ó255

¦U¦ì¤j­ô¦n,¤p§Ì¦³¤@¨Æ·Q½Ð±Ð,
°²³]¤µ¤Ñ¤@Àx¦s®æ¤ºªº¤º®e¬°aaaaaaaa-aaaaa-aaa-aa-aa-a-a-.....................aaa-a-a-a-a-a-....
Àx¦s®æ¤ºªº¤å¦rªø«×¤j©ó255,·Q­n¨Ì¨C3­Ó-²Å¸¹°µ´«¦æ,¦³¿ìªk°µ¨ì¶Ü?
¥i¥H½Ð¦U¦ì¤j­ô±Ð±Ð§Ú¶Ü?   ÁÂÁÂ!

¦^´_ 1# a77261988
  1. Option Explicit
  2. Sub Ex()
  3. Dim W As Variant, xi As Integer
  4.     W = "aaaaaaaa-aaaaa-aaa-aa-aa-a-a-aaaaa-aaa-aa-aa-a-a-aaaaa- aaa - aa - aa - a - a - aaaaa - aaa - aa - aa - a - a - aaaaa - aaa - aa - aa - a - a - aaaaa- aaa - aa - aa - a - a - aaaaa - aaa - aa - aa - a - a - aaaaa - aaa - aa - aa-a-a-aaaaa- aa -aa - aa - a - a - aaaaa - aaa - aa - aa - a - a - aaaaa - aaa - aa - aa - a - a - aaaaa - aaa - aa - aa - a - a"
  5.     W = Split(W, "-")
  6.     For xi = 2 To UBound(W) Step 3
  7.         W(xi) = W(xi) & Chr(10)
  8.     Next
  9.     [A1] = Join(W, Chr(10))
  10. End Sub
½Æ»s¥N½X

TOP

«ç»ò¤@­Ó°ÝÃDªº¸ÑŪ·|¦³³o»ò¤jªº¤£¦P¡A¨þ¨þ¡I¼Ó¥Dªº»¡©ú¤è¦¡­n¥[ªo¡C
§Úªº²z¸Ñ¬O¡G
  1. Sub yy()
  2.     W = [A1]
  3.     For i = 1 To Len(W)
  4.         If Mid(W, i, 1) = "-" Then
  5.             j = j + 1
  6.             If j = 3 Then
  7.                 Mid(W, i, 1) = ",": j = 0
  8.             End If
  9.         End If
  10.     Next
  11.     W = Split(W, ",")
  12.     [b1].Resize(UBound(W) + 1, 1) = Application.Transpose(W)
  13. End Sub
½Æ»s¥N½X

TOP

¥»©«³Ì«á¥Ñ a77261988 ©ó 2012-6-30 14:44 ½s¿è

GBKEE¤j­ô§A¦n,§Ú¦³¹Á¸Õ¤F§A´£¨Ñªºµ{¦¡,
¦ý¬O§Úµo²{split()³o­Ó¨ç¦¡¦ü¥G¬O±N§ä¨ìªº²Å¸¹¥ÎªÅ®æ¹j¶},
©êºp,¥i¯à¬O§Ú©Òªí¹Fªº»y·N¤£©ú,³y¦¨§Aªº»~¸Ñ,
©Ò¥H§Ú§Æ±æ§e²{ªº¸ê°T
aaaaaaaa-aaaaa-aaa-
aa-aa-a-
a-aaaaa-aaa-
aa-aa-a-
a-aaaaa- aaa -
aa-aa-a -
ª©¥D¤j­ô¦³¨S¦³«Øij§Oªº¸û²Å¦X§Ú»Ý¨Dªº¨ç¦¡,ÁÂÁÂ!

TOP

oobird¤j­ô§A¦n,½Ð°Ý¦³¿ìªk±N³o­Ó¤º®e¶ë¦b¦P¤@­ÓÀx¦s®æ¶Ü?

TOP

¦^´_ 5# a77261988
  1. Sub yy()
  2.     w = [A1]
  3.     For i = 1 To Len(w)
  4.         If Mid(w, i, 1) = "-" Then
  5.             j = j + 1
  6.             If j = 3 Then
  7.                 Mid(w, i, 1) = vbLf: j = 0
  8.             End If
  9.         End If
  10.     Next
  11.     [b1] = w
  12. End Sub
½Æ»s¥N½X

TOP

«O¯d¨C¦æ³Ì¦Zªº"-"
  1. Sub yy()
  2.     w = [A1]
  3.     For i = 1 To Len(w)
  4.         If Mid(w, i, 1) = "-" Then
  5.             j = j + 1
  6.             If j = 3 Then
  7.                 Mid(w, i, 1) = ",": j = 0
  8.             End If
  9.         End If
  10.     Next
  11.     [b1] = Replace(w, ",", "-" & vbLf)
  12. End Sub
½Æ»s¥N½X

TOP

oobird¤j­ô,ÁÂÁ§Aªºµ{¦¡,
¥i§_¦A½Ð±Ð¤@¤U,¦]¬°³o¼Ë¤l¬O¹ï³æ¤@Àx¦s®æ,
¨º¦pªG´«¦¨¦h­ÓÀx¦s®æ¥h°µ¾ã²z,¦n¹³¥u­nÀx¦s®æ¸Ìªº¦r¤¸ªø«×¤j©ó255,
´N·|¨S¿ìªk§@±Æ§Ç¾ã²z,§ÚÀ³¸Ó¦p¦ó°µ©O?

TOP

¥u­nÀx¦s®æ¸Ìªº¦r¤¸ªø«×¤j©ó255,´N·|¨S¿ìªk§@±Æ§Ç¾ã²z
À³¸Ó¨S³o­Ó¹D²z¡AÀx¦s®æ¥i¥HÅã¥Ü1024­Ó¦r¤¸
­n¾ã²z¦h­ÓÀx¦s®æ¡A³Ì¦n¤W¶Çªþ¥ó¡A¥H¤F¸Ñ§A­n³B²zªº°Ï°ì

TOP

oobird¤j­ô,¤j·§¬O³o¼Ë¤l,µM«á§Ú·Q¹ïD Column°µ¾ã²z.
³Â·Ð§A¤F,ÁÂÁÂ!

EX.rar (6.96 KB)

TOP

        ÀR«ä¦Û¦b : ¦Û¤v®`¦Û¤v¡A²ö¹L©ó¶ÃµoµÊ®ð¡C
ªð¦^¦Cªí ¤W¤@¥DÃD