+ Reply to Thread
Results 1 to 6 of 6

email address validation

  1. #1
    Registered User
    Join Date
    01-08-2018
    Location
    India
    MS-Off Ver
    2013
    Posts
    56

    email address validation

    Hi Team,

    Need a UDF to validate email address on the basis of below condition.

    "all the special character before “@” are valid and any special character, except “dot(.)”, after “@” are invalid in an email"

    Eg : 1abc#@TY123.com is valid
    1abc#@ty-mail.com is invalid

    Regards,
    Ashok

  2. #2
    Forum Expert dominicb's Avatar
    Join Date
    01-25-2005
    Location
    Lancashire, England
    MS-Off Ver
    MS Office 2000, 2003, 2007 & 2016 365
    Posts
    4,867

    Re: email address validation

    Good morning ashok0141

    Does this one suit your purposes : http://www.geeksengine.com/article/v...email-vba.html

    HTH

    DominicB
    Please familiarise yourself with the rules before posting. You can find them here.

  3. #3
    Registered User
    Join Date
    01-08-2018
    Location
    India
    MS-Off Ver
    2013
    Posts
    56

    Re: email address validation

    Good morning Dominicb,
    this is not giving output as per my condition mentioned

  4. #4
    Forum Expert
    Join Date
    04-23-2009
    Location
    Matrouh, Egypt
    MS-Off Ver
    Excel 2013
    Posts
    6,882

    Re: email address validation

    Try changing the pattern in the link provided to
    Please Login or Register  to view this content.
    < ----- Please click the little star * next to add reputation if my post helps you
    Visit Forum : From Here

  5. #5
    Registered User
    Join Date
    01-08-2018
    Location
    India
    MS-Off Ver
    2013
    Posts
    56

    Re: email address validation

    i have changed the pattern as per my need and it is working fine

    objRegExp.Pattern = "^([a-zA-Z0-9_\!\#\$\%\`\*\+\-\/\=\.\?\^\'\~\{\}\|\&]+)@[a-z0-9]+(\.[a-z0-9]+)*(\.[a-z]{2,3})$"

    Thanks

  6. #6
    Forum Expert
    Join Date
    04-23-2009
    Location
    Matrouh, Egypt
    MS-Off Ver
    Excel 2013
    Posts
    6,882

    Re: email address validation

    Glad you can do it .. Thanks for the rep points

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. [SOLVED] vba email send from excel - ignore second email address if "ENTER EMAIL ADDRESS"
    By nigelog in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 09-28-2016, 07:22 AM
  2. Validation in the email address textbox
    By aman1234 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 08-25-2015, 09:10 AM
  3. Email a screenshot of a specifc row in an email to a specfic email address
    By Cobra75007 in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 08-19-2015, 10:36 AM
  4. [SOLVED] Need Help with HTMLBody. Hyperlink email address and web address in body message VBA
    By Christopher Val in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 02-11-2015, 04:39 PM
  5. Data Validation- email address format?
    By bjohnsonac in forum Excel General
    Replies: 2
    Last Post: 12-08-2014, 04:44 PM
  6. Replies: 1
    Last Post: 03-08-2012, 01:57 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1