View Single Post
 
Old 06-15-2018, 03:40 PM
macropod's Avatar
macropod macropod is offline Windows 7 64bit Office 2010 32bit
Administrator
 
Join Date: Dec 2010
Location: Canberra, Australia
Posts: 22,467
macropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond repute
Default

Try:
Right(strAttorneyName, Len(strAttorneyName)- InStrRev(strAttorneyName, " "))
or:
Split(strAttorneyName, " ")(Ubound(Split(strAttorneyName, " "))

Do note, however, no such approach will return names that have two or more words (e.g. St James, Van Heusen). For that, you really need to have separate textboxes for the Attorney given & family names.
__________________
Cheers,
Paul Edstein
[Fmr MS MVP - Word]
Reply With Quote