+ Reply to Thread
Results 1 to 3 of 3

Data Validation for ComboBox on userform...display MsgBox if value is false?

  1. #1
    Registered User
    Join Date
    07-09-2017
    Location
    United Kingdom
    MS-Off Ver
    2010
    Posts
    39

    Data Validation for ComboBox on userform...display MsgBox if value is false?

    Hi all,

    How can Data Validation be applied to a ComboBox on a userform for data entry purposes.



    For example. My ComboBox has a dropdown list with two values, Y and N.



    If a user enters a value which is not Y and N then a MsgBox will show.

    Can this be done using a IF statement to ensure, if values Y or N is not entered then
    a msgbox will appear etc..



    Many thanks!

    Kind regards,

    Kamal1234

  2. #2
    Forum Expert MickG's Avatar
    Join Date
    11-23-2007
    Location
    Banbury,Oxfordshire
    Posts
    2,650

    Re: Data Validation for ComboBox on userform...display MsgBox if value is false?

    Try this:-
    Please Login or Register  to view this content.

  3. #3
    Registered User
    Join Date
    07-09-2017
    Location
    United Kingdom
    MS-Off Ver
    2010
    Posts
    39

    Re: Data Validation for ComboBox on userform...display MsgBox if value is false?

    Many thanks Mick G! I have the MsgBox appearing twice when wrong data value is entered. Anyways I can make the msgbox appear once? Many 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. Replies: 0
    Last Post: 05-03-2017, 01:44 PM
  2. Select row from combobox - display data in userform
    By behedwin in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 10-12-2016, 11:04 AM
  3. Data validation on combobox in userform
    By zamirkaya in forum Excel General
    Replies: 4
    Last Post: 07-16-2016, 06:23 PM
  4. Userform ComboBox to display value from a list only once
    By HJHamm in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 05-19-2015, 12:49 PM
  5. Replies: 1
    Last Post: 12-11-2013, 02:55 AM
  6. Refresh UserForm to display data that is linked to combobox selection
    By alter54 in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 08-16-2012, 01:30 PM
  7. Userform Syntax to have textbox display Msgbox when contents left unchanged
    By clemsoncooz in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 02-01-2012, 06:25 AM

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