excel - Is there away to call Multiple Items from single cell -
i wondering if possible call out several items single cell? limited in space having 1 cell information great benefit. example if had single cell had "dog,2,5,8" program run program tell meant , run calculation? thank in advance.
as @tim williams said, split() want.
sub splitcell() dim teststring string teststring = cstr(range("a3").value) dim testarray() string testarray() = split(teststring, ", ") msgbox (testarray(0) & vbnewline & testarray(1) & vbnewline & testarray(2) & vbnewline & testarray(3)) end sub
macro give message box:
now can iterate through testarray() loop , logic.
see msdn documentation here
and here post
Comments
Post a Comment