I have a batch of names with different numbers of words
e.g.
Mr Joe Bloggs
Mr Smith
Mr James jones
I was going to use Split
Dim surnamearray
surnamearray = Split(surnamesplit, " ")
but how can I make sure I get the last entry in the array as some have only 2 words or some have 3?
So if I use surnamearray(2) it will not work in some cases as the last name will be surnamearray(1)
how can I do this
e.g.
Mr Joe Bloggs
Mr Smith
Mr James jones
I was going to use Split
Dim surnamearray
surnamearray = Split(surnamesplit, " ")
but how can I make sure I get the last entry in the array as some have only 2 words or some have 3?
So if I use surnamearray(2) it will not work in some cases as the last name will be surnamearray(1)
how can I do this