B
Ben
Hi
I am creating a dynamic function to return a two dimensional array from a
delimeted string.
The delimited string is like:
field1...field2...field3...
field1...field2...field3...
field1...field2...field3...
field1...field2...field3...
I have this code which errors on the two dimentional array, but I am also
wondering if there is a one step method of performing the job
Any advice would be much appreciated
Thanks
B
Dim strRows() As String
Dim strResult(0, 0) As String
Dim i As Integer
strRows = Split(strDelim, vbCrLf)
For i = 0 To UBound(strRows)
If Len(strRows(i)) > 0 Then
strResult(i, UBound(strResult()) = Split(strRows(i), "..."))
End If
Next i
I am creating a dynamic function to return a two dimensional array from a
delimeted string.
The delimited string is like:
field1...field2...field3...
field1...field2...field3...
field1...field2...field3...
field1...field2...field3...
I have this code which errors on the two dimentional array, but I am also
wondering if there is a one step method of performing the job
Any advice would be much appreciated
Thanks
B
Dim strRows() As String
Dim strResult(0, 0) As String
Dim i As Integer
strRows = Split(strDelim, vbCrLf)
For i = 0 To UBound(strRows)
If Len(strRows(i)) > 0 Then
strResult(i, UBound(strResult()) = Split(strRows(i), "..."))
End If
Next i