Quantcast
Channel: Excel Help Forum - Excel Programming / VBA / Macros
Viewing all articles
Browse latest Browse all 50085

strip out numbers from array value?

$
0
0
If I have an array built from a user form input box "TextBox1.Value". The values entered by the user are like the below numbers. How can I strip out each number from the value of the array into new variables or even new arrays. Some values may have up to 4 individual numbers as you can see below.


HERE IS MY SAMPLE CODE WHERE I TAKE THE USER FORM VALUES INTO AN ARRAY AN WILL ATTEMPT TO LOOP BUT NEED YOUR GUYS HELP ON HOW I CAN STRIP OUT THE NUMBERS INTO INDIVIUAL VARIABLES

Formula:
myArray = Split(TextBox1.Value, Chr(13))

For X = LBound(myArray) To UBound(myArray) 'define start and end of array


Next X ' Loop!




THIS IS A SAMPLE OF WHAT A USER WOULD BE INPUTING INTO THE FORM TEXT BOX

20 5 15 346
20 5 18 347
20 5 21 348
20 5
20 5 27 350
20 5 30 351
20 5 33 352
20
20 5 39 354
20 5 42
20 5 1 356

Viewing all articles
Browse latest Browse all 50085

Trending Articles