spilit function in excel vba code example Example: vba split string Dim names() As String names = Split( "John Paul Smith" ,",")