Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 7,247
Default 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
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Finding 1 of 3 different strings in a string MarkMcG Excel Worksheet Functions 3 June 10th 08 05:55 PM
Parsing / seperating text string in excel cell sfleck Excel Discussion (Misc queries) 7 November 16th 07 12:24 AM
String splitting for inconsistent strings Richard Excel Worksheet Functions 3 June 22nd 06 03:55 AM
Colomn of strings, how to count each string with "abc" OR "def" Tommy T Excel Worksheet Functions 8 September 5th 05 04:57 PM
Seperating 1 String into Many strings! Don Guillett[_4_] Excel Programming 0 September 2nd 04 08:00 PM


All times are GMT +1. The time now is 12:04 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"