+ Reply to Thread
Results 1 to 5 of 5

Validate users entry against a list held in another worksheet

  1. #1
    Registered User
    Join Date
    05-16-2011
    Location
    Milton Keynes
    MS-Off Ver
    Excel 2007
    Posts
    29

    Validate users entry against a list held in another worksheet

    Hi all,

    In my workbook i have a few cells where users manually type in serial numbers. Is there a way that every time a user enters a value in any of these cells i can use the worksheet change to run a macro that will validate the user entry against a list of serial numbers in another worksheet. If the value matches one from the list 'do Nothing' but if the value is not recognized it will trigger a MsgBox to let the user know the value entered is not allowed.


    Thanks

    Miff3436
    Attached Files Attached Files

  2. #2
    Forum Guru karedog's Avatar
    Join Date
    10-03-2014
    Location
    Indonesia
    MS-Off Ver
    2003
    Posts
    2,971

    Re: Validate users entry against a list held in another worksheet

    Maybe :
    Please Login or Register  to view this content.
    1. I care dog
    2. I am a loop maniac
    3. Forum rules link : Click here
    3.33. Don't forget to mark the thread as solved, this is important

  3. #3
    Forum Guru MarvinP's Avatar
    Join Date
    07-23-2010
    Location
    Woodinville, WA
    MS-Off Ver
    Office 365
    Posts
    16,169

    Re: Validate users entry against a list held in another worksheet

    Hi Miff,

    This is exactly what Data Validation does. You simply need to use it.

    https://support.office.com/en-us/art...6-EFF3CE5F7249
    One test is worth a thousand opinions.
    Click the * Add Reputation below to say thanks.

  4. #4
    Registered User
    Join Date
    05-16-2011
    Location
    Milton Keynes
    MS-Off Ver
    Excel 2007
    Posts
    29

    Re: Validate users entry against a list held in another worksheet

    Hi MarvinP

    Thanks for the response. This is more a proof of concept for something I wanted to try. I do use the data validation in general and drive user behaviours using functions like drop downs and character length etc..... I just wanted to know if there was a way for the user to enter manually instead of scrolling through a drop down that could have up to 6000 numbers in.

    Your code is perfect for what I was looking to achieve. Your help is much appreciated.

    Thanks
    Miff3436

  5. #5
    Forum Guru karedog's Avatar
    Join Date
    10-03-2014
    Location
    Indonesia
    MS-Off Ver
    2003
    Posts
    2,971

    Re: Validate users entry against a list held in another worksheet

    If that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED. Thanks.

+ 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] Validate UserForm Data Against an Entry from the Worksheet
    By wthomas1957 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 09-23-2015, 12:28 PM
  2. [SOLVED] Validate Listbox Entry
    By AndyE in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 03-08-2015, 05:34 PM
  3. Validate that entry in one cell matches an entry in another range of cells
    By Grilleman in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 11-01-2014, 03:57 PM
  4. [SOLVED] VBA to validate entry?
    By D_N_L in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 02-25-2014, 11:46 AM
  5. MsgBox to validate an entry
    By TimN in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 07-21-2006, 04:15 PM
  6. Prompting users for data entry in a worksheet
    By MG in forum Excel General
    Replies: 1
    Last Post: 09-07-2005, 03:05 PM
  7. Validate textbox entry
    By Stuart in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 05-13-2005, 03:06 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