Splitting name from email address (1 Viewer)

kupe

Registered User.
Local time
Today, 13:28
Joined
Jan 16, 2003
Messages
462
I have a list of email addresses. I want to take the name before "@" and divide it into two if there's a "." or "- " or "_". And to capitalise the first letter of both names.

For example, rob-roy@hootsmon.com would be Rob Roy.

Hope an expert would show me how. Cheers
 

GeoMetry

New member
Local time
Today, 08:28
Joined
Jul 24, 2007
Messages
9
Use instr() to find the location of the @ or . or - then use mid() to extract the part you want. Use Ucase and Lcase to modify the case as required.
 

kupe

Registered User.
Local time
Today, 13:28
Joined
Jan 16, 2003
Messages
462
Many thanks, GeoMetry. Would you bundle this into a Iif?
 

Users who are viewing this thread

Top Bottom