+ Reply to Thread
Results 1 to 3 of 3

Using ComboBox to fill data in cells of sheet1 from sheet2

  1. #1
    Registered User
    Join Date
    04-26-2013
    Location
    Spokane, Washington
    MS-Off Ver
    Excel 2010
    Posts
    2

    Using ComboBox to fill data in cells of sheet1 from sheet2

    Hello,
    I am new to VBA. I have done some VBA in excel before like adding command buttons to send a copy of .xlsm workbook as an .xlsx file as an attachment in an e-mail and calling data from the workbook to fill Subject and Body with data from cells of the .xlsm workbook. I found example code online in multiple locations and modified it to fit my need.

    What I am trying to accomplish yet have not found much help online is to have a workbook that has multiple sheets but only 2 of them will be used (this is for quoting a product with multiple option selections to a customer). What I want to do is on the quote sheet is to have combo boxes in each of the Part Number cells that get their list form the options sheet column B part numbers. Now when you select one of the part numbers from the combo box I want to be able to call the data from that part numbers cells that hold the description and unit price and then copy the description and unit price to the 2 corresponding cells of the row the combo box is in on the Quote sheet. The combo box will be the part number displayed on the quote sheet and the user can fill out quantity and formulas will calculate the rest.

    I have attached an example workbook that has no code. The Quote sheet is blank for the most part and the Options sheet has 10 example part numbers. Thanks in advance for any help.
    Attached Files Attached Files

  2. #2
    Valued Forum Contributor tehneXus's Avatar
    Join Date
    04-12-2013
    Location
    Hamburg, Germany
    MS-Off Ver
    Work: MS-Office 2010 32bit @ Win8 32bit / Home: MS-Office 2016 32bit @ Win10 64bit
    Posts
    944

    Re: Using ComboBox to fill data in cells of sheet1 from sheet2

    This one goes without VBA using data validation and VLookup: Example ComboBox Selection.xlsm

    Regards
    Please use [CODE]-TAGS
    When your problem is solved mark the thread SOLVED
    If an answer has helped you please click to give reputation
    Read the FORUM RULES

  3. #3
    Registered User
    Join Date
    04-26-2013
    Location
    Spokane, Washington
    MS-Off Ver
    Excel 2010
    Posts
    2

    Re: Using ComboBox to fill data in cells of sheet1 from sheet2

    I did end up using Data Validation to setup my drop down box with a Named column from another worksheet and then used the "INDEX" formula to fill cells with the corisponding info from another sheet. Thanks for replying.
    This is the INDEX command I used.
    Please Login or Register  to view this content.

+ 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