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.
Gets a little long but should do the trick as long as there is always a middle name or initial.
Public Function SplitWord(strName) As String
aNames = Split(strName)
Select Case UBound(aNames)
Case -1
'-- No word
SplitWord = "No name"
Case 0
'-- One name - print it
SplitWord = aNames(0)
Case 1
'-- Two names - print the first
SplitWord = aNames(0)
Case Else
'-- Three or more names - print the second
SplitWord = aNames(1)
End Select
End Function