Hi,
I'm looking for a code to seperate a name in a userform textbox from it's prefixes and copy both to different textboxes. So, if the user enters the (Dutch) name "van den berg" the code should copy "van den" to one textbox and "berg" to another. Any help appreciated; thanks in advance.
Last edited by WCJanssen; 12-22-2010 at 10:11 AM.
Maybe
pos = InStrRev(txtName.Text, " ") txtSurname.Text = Mid$(txtName.Text, pos + 1, Len(txtName.Text) - pos) txtForename.Text = Replace(txtName, " " & txtSurname.Text, "")
Perfect, thanks a lot!
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks