#1   Report Post  
Sandee
 
Posts: n/a
Default Verify email

I have names and email addresses in excel worksheet...is there a way to
validate these addresses
  #2   Report Post  
Ron de Bruin
 
Posts: n/a
Default

Hi Sandee

Do you want this?

You can check for the @ and the . character in each mail address

Sub test()
' J.E suggestion "?*@?*.?*" instead of *@*
For Each mycell In Columns("B").Cells.SpecialCells(xlCellTypeConstant s)
If mycell.Value Like "?*@?*.?*" Then
'do nothing
Else
MsgBox "Wrong E-mail address in " & mycell.Address
End If
Next
End Sub


--
Regards Ron de Bruin
http://www.rondebruin.nl



"Sandee" wrote in message ...
I have names and email addresses in excel worksheet...is there a way to
validate these addresses



Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Activate email column to hyperlinks DixieWins Excel Discussion (Misc queries) 2 February 3rd 05 08:09 PM
background color showing only when in email form David Excel Discussion (Misc queries) 1 January 23rd 05 09:46 PM
Using CONCATENATE function to create email addresses from a list Almamba Excel Worksheet Functions 2 January 23rd 05 09:10 PM
Shut off email address from linking to email program? Java Jake Excel Worksheet Functions 6 December 31st 04 04:05 PM
How do I include cell data in subject line of email address/hyperl gvinnola Excel Worksheet Functions 1 November 18th 04 02:36 AM


All times are GMT +1. The time now is 02:56 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"