MACRO LIBRARY

Lesson 1.6 - split function

Free public access. No account or subscription required.

Files

Lesson 1.6 - split function

Code

Dim strText As String
Dim strArray() As String
Dim i As Integer
    
Sub main()
    strText = "A,B,C,D,E,F,G"
    strArray = Split(strText, ",")
    For i = 0 To UBound(strArray)
        MsgBox strArray(i)
    Next i
End Sub