![]() |
#4
|
||||
|
||||
![]()
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] |
Tags |
extract, textbox |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Spell Check TextBox in UserForm | rjmiller | Word VBA | 6 | 12-17-2018 09:32 PM |
![]() |
orozvik@yahoo.com | Excel Programming | 2 | 05-08-2015 02:50 AM |
Can't use RTF Textbox in Userform (Word2007) | dherr | Word VBA | 2 | 03-16-2015 07:50 AM |
![]() |
MarkAn | Word VBA | 2 | 08-15-2014 06:50 AM |
![]() |
officeclerk | Excel Programming | 2 | 04-17-2012 01:23 AM |