宮崎産 黒毛和牛 こま切れ
みたいな文字列を最初の" "(全角スペース)で区切ります。
mystr = Cells(L, 1).Value
num = InStr(mystr, " ")
If num = 0 Then
Lstr = ""
Rstr = mystr
Else
Lstr = Left(mystr, num - 1)
Rstr = Mid(mystr, num + 1)
End If
Cells(L, 2).Value = Lstr
Cells(L, 3).Value = Rstr
コメントする