Christopher Greaves |
|||
Christopher Greaves |
|||
If you are interested in applications please visit www.VBASolutions.ca .
If you are interested in end-user macros please visit www.TorontoMacros.com .
A character string looks like this:
We could obtain the first name by using strSplitAt:
It’s easier to build the string that way, too!
MsgBox UW.strSplitAt("Christopher,Paul,Reynolds,Greaves", ",")
Dim strInputString As String
strInputString = ",Christopher,Paul,Reynolds,Greaves"
Dim strDelimiter As String
strDelimiter = Left(strInputString, 1)
While Len(strInputString) > 0
MsgBox UW.strSplitAt(strInputString, strDelimiter)
Wend
End Sub