+ Reply to Thread
Results 1 to 11 of 11

Cant figure out how to make a Message Box that asked for input from a drop down list.

  1. #1
    Forum Contributor Legend Rubber's Avatar
    Join Date
    09-21-2012
    Location
    Tillsonburg, Ontario
    MS-Off Ver
    Excel 2010
    Posts
    392

    Cant figure out how to make a Message Box that asked for input from a drop down list.

    I dont know if this makes sense, or if it is possible...

    I would like to create the following...

    1. User opens workbook
    2. Message Box appears asking user to select a customer name from a drop down list.
    3. user picked customer name gets put into a specific cell

  2. #2
    Forum Expert
    Join Date
    07-31-2010
    Location
    California
    MS-Off Ver
    Excel 2007
    Posts
    4,070

    Re: Cant figure out how to make a Message Box that asked for input from a drop down list.

    Where is the data that popluates the drop down list located? A simple UserForm would accomplish this.

  3. #3
    Forum Moderator Leith Ross's Avatar
    Join Date
    01-15-2005
    Location
    San Francisco, Ca
    MS-Off Ver
    2000, 2003, & 2010
    Posts
    23,258

    Re: Cant figure out how to make a Message Box that asked for input from a drop down list.

    Hello Legend Rubber,

    You can this by creating a UserForm with a ListBox.
    Sincerely,
    Leith Ross

    Remember To Do the Following....

    1. Use code tags. Place [CODE] before the first line of code and [/CODE] after the last line of code.
    2. Thank those who have helped you by clicking the Star below the post.
    3. Please mark your post [SOLVED] if it has been answered satisfactorily.


    Old Scottish Proverb...
    Luathaid gu deanamh maille! (Rushing causes delays!)

  4. #4
    Forum Contributor Legend Rubber's Avatar
    Join Date
    09-21-2012
    Location
    Tillsonburg, Ontario
    MS-Off Ver
    Excel 2010
    Posts
    392

    Re: Cant figure out how to make a Message Box that asked for input from a drop down list.

    The data that populates the drop down list would be on a page inside the workbook that is opening... I dont know anything about UserForms... can someone help me with that?

  5. #5
    Forum Moderator Leith Ross's Avatar
    Join Date
    01-15-2005
    Location
    San Francisco, Ca
    MS-Off Ver
    2000, 2003, & 2010
    Posts
    23,258

    Re: Cant figure out how to make a Message Box that asked for input from a drop down list.

    Hello Legend Rubber,

    You would need to post a copy of the workbook.

  6. #6
    Forum Expert
    Join Date
    06-12-2012
    Location
    Ridgefield Park, New Jersey
    MS-Off Ver
    Excel 2003,2007,2010
    Posts
    10,241

    Re: Cant figure out how to make a Message Box that asked for input from a drop down list.

    Maybe:

    Please Login or Register  to view this content.
    Assumes D1 has the dropdown list and A1 is the specific cell.

    Please Login or Register  to view this content.

  7. #7
    Forum Contributor Legend Rubber's Avatar
    Join Date
    09-21-2012
    Location
    Tillsonburg, Ontario
    MS-Off Ver
    Excel 2010
    Posts
    392

    Re: Cant figure out how to make a Message Box that asked for input from a drop down list.

    OK, i have learned the basics of the UserForm and have got that working... question...

    I have the following code...

    Please Login or Register  to view this content.
    I want to skip this if a CheckBox is filled... how would i do that?

  8. #8
    Forum Moderator Leith Ross's Avatar
    Join Date
    01-15-2005
    Location
    San Francisco, Ca
    MS-Off Ver
    2000, 2003, & 2010
    Posts
    23,258

    Re: Cant figure out how to make a Message Box that asked for input from a drop down list.

    Hello Legend Rubber,

    Assuming your check box is named "CheckBox1"....
    Please Login or Register  to view this content.

  9. #9
    Forum Contributor Legend Rubber's Avatar
    Join Date
    09-21-2012
    Location
    Tillsonburg, Ontario
    MS-Off Ver
    Excel 2010
    Posts
    392

    Re: Cant figure out how to make a Message Box that asked for input from a drop down list.

    i have a block if without end if error....

    where does the end if come after checking the checkbox?

  10. #10
    Forum Moderator Leith Ross's Avatar
    Join Date
    01-15-2005
    Location
    San Francisco, Ca
    MS-Off Ver
    2000, 2003, & 2010
    Posts
    23,258

    Re: Cant figure out how to make a Message Box that asked for input from a drop down list.

    Hello Legend Rubber,

    If you copied the code as posted, there should be no error with the change. "IF" statements can be either block style or single line. The added statement is a single line "IF". The remaining lines are block style.

  11. #11
    Forum Contributor Legend Rubber's Avatar
    Join Date
    09-21-2012
    Location
    Tillsonburg, Ontario
    MS-Off Ver
    Excel 2010
    Posts
    392

    Re: Cant figure out how to make a Message Box that asked for input from a drop down list.

    ok, i got that to work to exit the sub without doing anything... what if i wanted to do something if the checkbox was checked? so..

    if the checkbox is checked i would want the following...

    Please Login or Register  to view this content.
    Else i would like the original to take place...

    (Also, the above code is the same thing for 3 separate worksheets... is there an easier way to do this?

+ 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] Need a formula for getting a figure based on what is in the drop down list of another cell
    By BTravisInc in forum Excel Formulas & Functions
    Replies: 15
    Last Post: 10-11-2013, 10:51 PM
  2. Replies: 0
    Last Post: 01-22-2013, 04:53 PM
  3. How show the input message of a data validation list on a textbox
    By votefourpedro in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 04-10-2011, 02:12 PM
  4. Calculating monthly sales figure required to make annual turnover figure
    By CatIsoSio Sky in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 07-27-2010, 04:42 PM
  5. Drop down list based on input of two other drop down list
    By mitesh55 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 06-09-2010, 07:41 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