Thread: split problem
View Single Post
  #1   Report Post  
Posted to microsoft.public.excel.programming
אלי אלי is offline
external usenet poster
 
Posts: 67
Default split problem

Hi all,

I am interesting to break a string with spaces into an array with substrings
and to have it in the same cell.
for example:
dim MyString as string
MyString = range("A1").value ' range("A1").value = "Good morning"
range("A1").value = split(MyString, " ").

The problem is that instead of:
Good
morning

as range("A1").value I get only: morning.

Please help me to fix it!

Thanks

Eli