kupe
Technical User
- Sep 23, 2002
- 376
Anyone spare an example of the split function in action that this despairing VB new-ish-bie could download please?
Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
Private Sub cmdSplit_Click()
Dim myArray() As String
Dim i As Integer
myArray = Split(txtMyString)
For i = 0 To UBound(myArray)
With lstMyList
If i = 0 Then
.RowSource = myArray(i)
Else
.RowSource = .RowSource & ", " & myArray(i)
End If
End With
Next i
End Sub