+ Reply to Thread
Results 1 to 5 of 5

Excel Userform- restrict users to choose from a drop down

  1. #1
    Registered User
    Join Date
    04-03-2013
    Location
    USA
    MS-Off Ver
    Excel 2003
    Posts
    78

    Excel Userform- restrict users to choose from a drop down

    Please provide the code to restrict users from altering "cboInitials". Will also need a message box to pop up stating "Restricted entry, please select from the dropdown". They should not be able to proceed until this has been completed. Below is the current code......

    Please Login or Register  to view this content.

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

    Re: Excel Userform- restrict users to choose from a drop down

    You would need code to alter the combobox, and I don't see any that'll do that in what you've posted.

    To ensure the user has selected (or typed) an item from the list check the combobox's ListIndex property on Exit.
    Please Login or Register  to view this content.
    If posting code please use code tags, see here.

  3. #3
    Registered User
    Join Date
    04-03-2013
    Location
    USA
    MS-Off Ver
    Excel 2003
    Posts
    78

    Re: Excel Userform- restrict users to choose from a drop down

    This almost had it. The problem now is that when I click "Save" it clears all fields except "Initials" and won't let me leave that record. Please tell me what I did wrong!

    Please Login or Register  to view this content.

  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: Excel Userform- restrict users to choose from a drop down

    It's not really a good idea to post the entire code every time.

    Probably best to upload a workbook with the latest code.

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

    Re: Excel Userform- restrict users to choose from a drop down

    I would post a solution but I don't have time to reconstruct the userform which I would need to do for testing.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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