Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

decoding a string of space delimited number into and array

Status
Not open for further replies.

Gumby1963

Technical User
Jun 9, 2003
5
0
0
US
I'm am having trouble getting a routine of any king to parse a string of number like "1 23 673 2 19" into an array of strings. Maybe I'm missing the logic but I have been looking at it so long my mind is turnning to jello. Any Help PLEASE!
 
Hi Gumby1963,

Split is what you need.

Dim myArray
myArray = Split("1 23 673 2 19")

will give you myArray(0)="1", myArray(1)="23", etc

Enjoy,
Tony

--------------------------------------------------------------------------------------------
We want to help you; help us to do it by reading this: Before you ask a question.
Excel VBA Training and more Help at [url=http://www.vbaexpress.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top