+ Reply to Thread
Results 1 to 5 of 5

Data validation on combobox in userform

  1. #1
    Registered User
    Join Date
    01-12-2016
    Location
    Blackpool
    MS-Off Ver
    2016
    Posts
    39

    Data validation on combobox in userform

    Hi again guys, I need some help with data validation on my comboboxes in my userforms.

    I'd like it to work so that my comboboxes are validated and that no other information but the lists provided can be entered into the boxes.

    Also, is there a way to get the "Begin" button on Sheet1 to recognize the last used UserForm? This is only if they need to stop the timer for whatever reason and have to get off the UserForms to do so. I'd like them to be able to return to their last used UserForm.
    Attached Files Attached Files
    Last edited by zamirkaya; 07-16-2016 at 06:54 AM.

  2. #2
    Forum Expert Tinbendr's Avatar
    Join Date
    06-26-2012
    Location
    USA
    MS-Off Ver
    Office 2010
    Posts
    2,125

    Re: Data validation on combobox in userform

    Quote Originally Posted by zamirkaya View Post
    I'd like it to work so that my comboboxes are validated and that no other information but the lists provided can be entered into the boxes.
    Something like this in each combobox event
    Please Login or Register  to view this content.


    Also, is there a way to get the "Begin" button on Sheet1 to recognize the last used UserForm? This is only if they need to stop the timer for whatever reason and have to get off the UserForms to do so. I'd like them to be able to return to their last used UserForm.
    You will need to store a userform value (1 or uf1 of Userform1) on the sheet. (Below the answers would be a good spot.)

    When the test is started again, ask the user if they want to continue. If yes, check the value and call the appropriate userform. (Be sure to clear the value when the last form loads.)
    David
    (*) Reputation points appreciated.

  3. #3
    Registered User
    Join Date
    01-12-2016
    Location
    Blackpool
    MS-Off Ver
    2016
    Posts
    39

    Re: Data validation on combobox in userform

    Awesome, I'll get to work on that. Thank, David!

  4. #4
    Forum Guru Norie's Avatar
    Join Date
    02-02-2005
    Location
    Stirling, Scotland
    MS-Off Ver
    Microsoft Office 365
    Posts
    19,643

    Re: Data validation on combobox in userform

    Just curious, why do you have 15 (seemingly) identical useforms?

    Couldn't you list the questions on a sheet an use one userform?

    That could make things a lot easier, in particular going back to the previous question.
    If posting code please use code tags, see here.

  5. #5
    Registered User
    Join Date
    01-12-2016
    Location
    Blackpool
    MS-Off Ver
    2016
    Posts
    39

    Re: Data validation on combobox in userform

    It's actually the first time I've ever used UserForms. If you could change it to reflect what you mean, I'd love to see and learn from it.

+ 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. Data Validation Combobox Help
    By BennyL in forum Excel General
    Replies: 37
    Last Post: 03-25-2016, 04:15 AM
  2. Replies: 0
    Last Post: 08-18-2015, 04:13 PM
  3. [SOLVED] Populate data from a Combobox in a UserForm into a combobox in another UserForm
    By johnw993 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 03-02-2015, 04:32 AM
  4. Userform - Combobox validation problem
    By Villalobos in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 11-20-2014, 02:34 AM
  5. Userform - selecting data for combobox 2 basedon slection in combobox 1
    By chrisjames25 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 09-17-2013, 04:27 PM
  6. [SOLVED] send data from userform combobox to userform combobox
    By cfinch100 in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 05-18-2013, 04:47 PM
  7. [SOLVED] data validation vs combobox
    By paul in forum Excel General
    Replies: 4
    Last Post: 10-24-2005, 07:05 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