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

[µo°Ý] ½Ð°Ý­n¦p¦ó±N¤G¦C¤À§O¶K¨ì吚¤GÄæ©O?

¥»©«³Ì«á¥Ñ Happkkevin ©ó 2011-8-7 19:21 ½s¿è

¦¹¾A¥Î¦h¸ê®Æ¹B¥Î¡A¥H Split ¥[¤W Chr(10) ¤Á³Î¤å¦r
  1. Dim myArray() As String
  2.     Dim i As Integer, j As Integer
  3.     Dim KROWEND%
  4.    
  5.     KROWEND = Cells(Rows.Count, 1).End(xlUp).Row
  6.     For j = 1 To KROWEND
  7.         myArray = Split(Cells(j, 1), Chr(10))
  8.         For i = 0 To UBound(myArray)
  9.             Cells(j, 2 + i).Value = myArray(i)
  10.         Next i
  11.     Next j
½Æ»s¥N½X
100 ¦r¸`¥H¤º
¤£¤ä«ù¦Û©w¸q Discuz! ¥N½X

TOP

¦^´_ 4# gctsai
  1. Sub RetsuBunKatsu1()
  2.     Dim myArray() As String
  3.     Dim i As Integer, j As Integer
  4.     Dim KROWEND%
  5.    
  6.     KROWEND = Cells(Rows.Count, 1).End(xlUp).Row
  7.     For j = 1 To KROWEND
  8.         myArray = Split(Cells(j, 1), Chr(10))
  9.         For i = 0 To UBound(myArray)
  10.            Sheets("sheet4").Cells(j, 1 + i).Value = myArray(i)
  11.         Next i
  12.     Next j
  13. End Sub


  14.    
½Æ»s¥N½X
Sheets("sheet4").Cells(j, 1 + i)
100 ¦r¸`¥H¤º
¤£¤ä«ù¦Û©w¸q Discuz! ¥N½X

TOP

¥»©«³Ì«á¥Ñ Happkkevin ©ó 2011-8-8 22:15 ½s¿è

¦^´_ 6# gctsai
­Y¬°©T©w 13 ¦ì¡A¨Ï¥Î NumberFormatLocal­×¥¿¡AÁÙ¦b¾Ç²ß¤¤
©Ò¥H¦³¨Ç§bªO¡A§Æ±æ¦³«ØijªÌ§iª¾
  1.     Dim myArray() As String
  2.     Dim i As Integer, j As Integer
  3.     Dim KROWEND%
  4.    
  5.     KROWEND = Cells(Rows.Count, 1).End(xlUp).Row
  6.     For j = 1 To KROWEND
  7.         myArray = Split(Cells(j, 1), Chr(10))
  8.         For i = 0 To UBound(myArray)
  9.             Sheets("sheet2").Cells(j, 1 + i).Value = myArray(i)
  10.             Sheets("sheet2").Cells(j, 1).NumberFormatLocal = "0000000000000"
  11.             Next i
  12.     Next j
  13.    
½Æ»s¥N½X
100 ¦r¸`¥H¤º
¤£¤ä«ù¦Û©w¸q Discuz! ¥N½X

TOP

¦^´_ 9# gctsai
  1.     Dim myArray() As String
  2.     Dim i As Integer, j As Integer
  3.     Dim KROWEND%
  4.    
  5.     KROWEND = Cells(Rows.Count, 1).End(xlUp).Row
  6.     For j = 1 To KROWEND
  7.         myArray = Split(Cells(j, 1), Chr(10))
  8.         For i = 0 To UBound(myArray)
  9.             Sheets("sheet4").Cells(j, 1).NumberFormatLocal = "@"
  10.             Sheets("sheet4").Cells(j, 1 + i).Value = myArray(i)
  11.             Next i
  12.     Next j
½Æ»s¥N½X
¸Õ¸Õ¬Ý¤å¦r »P ¼Æ¦r §e²{¸û³ßÅw¨ººØ¡ANumberFormatLocal = "@" ¥ý³]©w
100 ¦r¸`¥H¤º
¤£¤ä«ù¦Û©w¸q Discuz! ¥N½X

TOP

¦^´_ 10# oobird
¨S¿ù¡A©ñ¶i´`Àô¤¤¦ü¥G¬O¦h¦¹¤@Á|
¬Û«H¸ê®Æ¦h®É±N©ìºC³t«×¡A
´N¬O³oÂI¡A±`±`Åý§Ú¥Ç¤F©ìºCªº¯ÊÂI
¾Ç²ß¤¤¡A¦³¾Ç¨ì¡A·P®¦
100 ¦r¸`¥H¤º
¤£¤ä«ù¦Û©w¸q Discuz! ¥N½X

TOP

        ÀR«ä¦Û¦b : µêªÅ¦³ºÉ¡D§ÚÄ@µL½a¡AµoÄ@®e©ö¦æÄ@Ãø¡C
ªð¦^¦Cªí ¤W¤@¥DÃD