Group:  Microsoft Excel ยป microsoft.public.excel
Thread: Filter for bad email addresses

DotNetBag
.NET Development Newsgroups

HTVi
TV Discussion Newsgroups

Our Hot Pick: Rising Antivirus 2006 - Certified by TUV & Checkmark! Get 10% discount by entering this coupon code: ONDISCOUNT10
Rising Antivirus 2006

Filter for bad email addresses
"Cardinal" <john.menken[ at ]ceridian.com> 30.08.2006 14:02:11
I am not a spammer but I do have a customer who has given me I a column
with 1200 email addresses in it. The person that entered these emails
sometimes includes or misses one of the following items.
- an extra space
- a missing period before the .com (or .net, etc) part of the email
- no [ at ] symbol

Does anyone know of a function I could use to pull out any emails that
have one of these problems? If I can do that then I can send those back
to him with a note to fix. Thank you very much.

Re: Filter for bad email addresses
"Don Guillett" <dguillett1[ at ]austin.rr.com> 30.08.2006 14:56:58
You should be able to get rid of the extra space with TRIM and place the .
before com net etc with a looping macro that searches for that string.
INSTR. and you can search for missing [ at ]

Sub findmissing()
For Each c In Selection
If InStr(c, "[ at ]") = 0 Then c.Offset(, 1) = "bad" 'MsgBox c.Address
Next
End Sub
--
Don Guillett
SalesAid Software
dguillett1[ at ]austin.rr.com
"Cardinal" <john.menken[ at ]ceridian.com> wrote in message
news:1156946531.867966.261320[ at ]m73g2000cwd.googlegroups.com...
[Quoted Text]
>I am not a spammer but I do have a customer who has given me I a column
> with 1200 email addresses in it. The person that entered these emails
> sometimes includes or misses one of the following items.
> - an extra space
> - a missing period before the .com (or .net, etc) part of the email
> - no [ at ] symbol
>
> Does anyone know of a function I could use to pull out any emails that
> have one of these problems? If I can do that then I can send those back
> to him with a note to fix. Thank you very much.
>


Home | Search | Terms | Imprint | Contact
Newsgroups Reader - provided by WiredBox.Net