This is a fast, efficient way to make a split function. For longer strings, performance can be improved by enlarging AllocUnits.
Public Function Split(strText As String, _Optional Byval Delimited As String = vbNullString) As Variant Const AllocUnits = 10 Dim Count As Long, startPos As Long, EndPos As Long Dim MaxSubscription As Long, DelimitedLen As Long If Len(Trim$(strText)) = 0 Then Exit Function If Len(Delimited) = 0 Then Delimited =