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

[µo°Ý] ½Ð±Ð¦U¦ì ¦p¦ósplit«á±N(¤å¦r)Âà´«¬°(¼Æ¦r)

¦^´_ 1# cmo140497
  1. Sub ¥¨¶°2()
  2.     Dim MyTEXT As String, ar, j As Integer   
  3.     MyTEXT = "AAA:000 001 002 003"
  4.     j = 1
  5.     If MyTEXT Like AAA & "*" Then
  6.             Cells(1, j).Value = Split(MyTEXT, ":")(0)
  7.             ar = Split(Split(MyTEXT, ":")(1), " ")
  8.             With Cells(1, j + 1).Resize(, UBound(ar) + 1)
  9.                 .Value = ar
  10.                 .Value = .Value       '½d³òªº­È=½d³òªº­È
  11.             End With
  12.             'Result : Cells(1,1)=AAA , Cells(1,2)=000 , Cells(1,3)=001 , Cells(1,4)=002, Cells(1,5)=003
  13.             '¦p¦ó±N000 001 002 003 Âà´«¬°¼Æ¦rCells(1,2)=0 , Cells(1,3)=1 , Cells(1,4)=2, Cells(1,5)=3
  14.     End If
  15. End Sub
½Æ»s¥N½X

TOP

        ÀR«ä¦Û¦b : ¥Í®ð¡A´N¬O®³§O¤Hªº¹L¿ù¨ÓÃg»@¦Û¤v¡C
ªð¦^¦Cªí ¤W¤@¥DÃD