+ Reply to Thread
Results 1 to 6 of 6

Data Validation - E-Mail Addresses

  1. #1
    Registered User
    Join Date
    11-15-2007
    Posts
    57

    Data Validation - E-Mail Addresses

    I am trying to set up a registration form that can be completed in Excel with multiple delegates being registered on a single sheet and have a couple of things that I would like to do but do not know how to do them.

    1) There are certain 'mandatory fields' that need to be completed (marked with an asterisc) and I need the users to be prompted if they have not completed these fields.

    2) I also need to validate some of the data fields to eliminate as many data entry errors as I can and would like to verify to format of e-mail addresses. This would simply be a case of looking for @ and at least one full stop/period in the data.

    I have looked at the various options within data validation and I cannot see a way of doing these so I feel that a macro is my only choice. My only concern is how do I get the macro to run automatically so that the users cannot submit the file to me without any errors/omissions being corrected?
    Attached Files Attached Files

  2. #2
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: Data Validation - E-Mail Addresses

    data validation of
    =AND(ISNUMBER(SEARCH(".",A1)),ISNUMBER(SEARCH("@",A1)))
    "Unless otherwise stated all my comments are directed at OP"

    Mojito connoisseur and now happily retired
    where does code go ?
    look here
    how to insert code

    how to enter array formula

    why use -- in sumproduct
    recommended reading
    wiki Mojito

    how to say no convincingly

    most important thing you need
    Martin Wilson: SPV
    and RSMBC

  3. #3
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: Data Validation - E-Mail Addresses

    forum is double posting replies again!

  4. #4
    Registered User
    Join Date
    11-15-2007
    Posts
    57

    Re: Data Validation - E-Mail Addresses

    Thanks Martin

    Any ideas on the mandatory fields?

  5. #5
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: Data Validation - E-Mail Addresses

    nope not really nothing you can do to make someone fill them in without vba.well there is this but its beatable by copy/paste
    just put 0 in a1
    Attached Files Attached Files

  6. #6
    Administrator 6StringJazzer's Avatar
    Join Date
    01-27-2010
    Location
    Tysons Corner, VA, USA
    MS-Off Ver
    MS 365 Family 64-bit 2502
    Posts
    27,052

    Re: Data Validation - E-Mail Addresses

    I agree with martindwilson. I solved a problem like this with VBA in another thread.

    http://www.excelforum.com/excel-gene...ingencies.html

    The user is not allowed to close the file until all required fields are filled in. However, the user must permit macros to run, so you can't absolutely force it.
    Jeff
    | | |·| |·| |·| |·| | |:| | |·| |·|
    Read the rules
    Use code tags to [code]enclose your code![/code]

+ 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. Send to mail recipient, 1 worksheet, 2 cell ranges containing e-mail addresses
    By caladai in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 06-28-2013, 02:26 PM
  2. Opening e-mail addresses in a blank Outlook e-mail
    By Barking_Mad in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 06-03-2010, 11:59 AM
  3. Replies: 4
    Last Post: 07-08-2008, 11:14 AM
  4. Send mail to specified mail addresses if a situation qualifies
    By mohitmahajan in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 04-12-2007, 07:57 AM
  5. Replies: 4
    Last Post: 10-30-2006, 03:01 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