+ Reply to Thread
Results 1 to 2 of 2

dont allow adding of data when drop down box has nothing selected

  1. #1
    Forum Contributor
    Join Date
    08-12-2012
    Location
    United States
    MS-Off Ver
    Excel 2010
    Posts
    163

    dont allow adding of data when drop down box has nothing selected

    so i have a user form created with the following code
    Please Login or Register  to view this content.
    i want to add one more line to this code so that if my pulldown box has nothing selected then it wont add let you click the add button/enter

    i think it should start out like this but i dont know how to finish the code off
    Please Login or Register  to view this content.
    thanks for any help
    JED

  2. #2
    Forum Expert tigeravatar's Avatar
    Join Date
    03-25-2011
    Location
    Colorado, USA
    MS-Off Ver
    Excel 2003 - 2013
    Posts
    5,361

    Re: dont allow adding of data when drop down box has nothing selected

    JED,

    Note the change to the userform_initialize event, and the new private sub for the combobox1_change event:
    Please Login or Register  to view this content.
    Hope that helps,
    ~tigeravatar

    Forum Rules: How to use code tags, mark a thread solved, and keep yourself out of trouble

+ 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