Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
Seperating 1 String into Many strings!
Ben,
You can use the Split function to split the string into an array of strings. Dim S As String Dim Arr As Variant Dim N As Integer S = ".00004,.00034,.0024,.008" Arr = Split(S, ",") For N = LBound(Arr) To UBound(Arr) Debug.Print Arr(N) Next N -- Cordially, Chip Pearson Microsoft MVP - Excel Pearson Software Consulting, LLC www.cpearson.com "Ben H" wrote in message ... Hi all! I need to take a string and seperate it into 4 strings. It reads ".00004,.00034,.0024,.008" and i need to put it into 4 seperate strings, seperated by the commas Thanks! |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Finding 1 of 3 different strings in a string | Excel Worksheet Functions | |||
Parsing / seperating text string in excel cell | Excel Discussion (Misc queries) | |||
String splitting for inconsistent strings | Excel Worksheet Functions | |||
Colomn of strings, how to count each string with "abc" OR "def" | Excel Worksheet Functions | |||
Seperating 1 String into Many strings! | Excel Programming |