stumped with excel data import ... excel creates a CSV file that for the most part works up until it hits numbers larger then 999 when using the split() function ... exporting as Tab txt has the same issue ... excel wraps cell data in quotes when the cell contains a comma.
I was expecting split to recognize the quotes as meaning start of text but it appears to not understand them
Public Function gfnEntry(inPosition, chStr, Optional chDelim) As String
Dim chAry() As String
If IsMissing(chDelim) Then chDelim = ","
chAry = Split(chString, chDelim)
gfnEntry = chAry(inPosition - 1)
End Function
abc,100,0,xyz creates an array 0-3
abc,101,0,xyz ditto
.
.
.
abc,"1,000",0,xyz creates an array 0-4
x[0] = abc
x[1] = "1
x[2] = 000"
x[3] = 0
x[4] = xyz
I was expecting split to recognize the quotes as meaning start of text but it appears to not understand them
Public Function gfnEntry(inPosition, chStr, Optional chDelim) As String
Dim chAry() As String
If IsMissing(chDelim) Then chDelim = ","
chAry = Split(chString, chDelim)
gfnEntry = chAry(inPosition - 1)
End Function
abc,100,0,xyz creates an array 0-3
abc,101,0,xyz ditto
.
.
.
abc,"1,000",0,xyz creates an array 0-4
x[0] = abc
x[1] = "1
x[2] = 000"
x[3] = 0
x[4] = xyz