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 

enter image description here

macro give message box:

enter image description here

now can iterate through testarray() loop , logic.

see msdn documentation here

and here post


Comments

Popular posts from this blog

c# - How Configure Devart dotConnect for SQLite Code First? -

java - Copying object fields -

c++ - Clear the memory after returning a vector in a function -