Home |
Search |
Today's Posts |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
On 21 Apr 2007 11:01:10 -0700, gtslabs wrote:
I am having trouble parsing the data line extracting the correct lines using string commands. Is there an easier way to get this info? The Split function should do what you want: ================================== Sub ParseLine() Const sTest As String = "Data1|Data2|Data3|Data4|Data5|Data6|Data7|Dat a8" Dim arrData As Variant Dim i As Long arrData = Split(sTest, "|") For i = 5 To 7 Debug.Print i, arrData(i - 1) Next i End Sub ================================ --ron |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Parsing / seperating text string in excel cell | Excel Discussion (Misc queries) | |||
Parsing a text string into separate cells | Excel Worksheet Functions | |||
Import & Parsing a small 400 line CSV file | Excel Programming | |||
VBA Import of text file & Array parsing of that data | Excel Discussion (Misc queries) | |||
Reads entire *.txt file into string opposed to a desired line by line input. | Excel Programming |