+ Reply to Thread
Results 1 to 8 of 8

Combobox help!

  1. #1
    Registered User
    Join Date
    11-21-2010
    Location
    Singapore
    MS-Off Ver
    Excel 2007
    Posts
    9

    Combobox help!

    Hi all,

    I had populated a worksheet (vessels) with all relevant information

    I had created a combobox on worksheet1 showing the names of vessels which is linked to the worksheet (vessels) (cell, A2)

    Now, I would want, after choosing a combobox.value (name of vessel: eg. in cell A2). what is the code that would also get the other colomn information about the vessel in cell: B2 and C2 and transfer it all into a third worksheet?

    Thanks!

  2. #2
    Forum Expert royUK's Avatar
    Join Date
    11-18-2003
    Location
    Derbyshire,UK
    MS-Off Ver
    Xp; 2007; 2010
    Posts
    26,200

    Re: Combobox help!

    Why use a ComboBox, Data Validation list & VLOOKUP require no VBA & simpler to use
    Hope that helps.

    RoyUK
    --------
    For Excel Tips & Solutions, free examples and tutorials why not check out my web site

    Free DataBaseForm example

  3. #3
    Registered User
    Join Date
    11-21-2010
    Location
    Singapore
    MS-Off Ver
    Excel 2007
    Posts
    9

    Re: Combobox help!

    Hi Roy,

    As i'm doing a simple program for the engineers (including myself) using excel.

    The first worksheet is where the 'program' is run for the guys to input the data in.

    After all the inputs, the information are then transfered to another worksheet (service report) where it will be printed out and filed.

    The 3rd worksheet is the database of all the vessels information (cells: A2 = vessel name, B2 = callsign, C2 = equipment etc.)

    I would like the value chosen (eg. Cell A2) in combobox on 1st worksheet to be transfered over to the service report worksheet together with the information related to cell A2 (eg. B2, C2).

    Thanks!

  4. #4
    Forum Expert royUK's Avatar
    Join Date
    11-18-2003
    Location
    Derbyshire,UK
    MS-Off Ver
    Xp; 2007; 2010
    Posts
    26,200

    Re: Combobox help!

    To best describe or illustrate your problem you would be better off attaching a dummy workbook, the workbook should contain the same structure and some dummy data of the same type as the type you have in your real workbook - so, if a cell contains numbers & letters in this format abc-123 then that should be reflected in the dummy workbook.

    If needed supply a before and after sheet in the workbook so the person helping you can see what you are trying to achieve.

    Doing this will ensure you get the result you need!

  5. #5
    Registered User
    Join Date
    11-21-2010
    Location
    Singapore
    MS-Off Ver
    Excel 2007
    Posts
    9

    Wink Re: Combobox help!

    Hi Roy,

    I apologise for my limited knowledge in VBA excel programming.

    A picture speaks a thousand words, so they say.

    1) Worksheet1 is where engineers will use and input data in regards to the vessel.

    2) ServiceReport worksheet is where the input data by the engineers are saved and will be use for printing

    3) VesselDetail worksheet is where the vessels details are all located. It is only a database. Engineers will not need to use this page manually.

    Anyway, regarding the Vessel Combobox (In Worksheet1), when the user chose VSLtest (name of vessel) and click next button command below the page, I would need all the vessel details stated in cells B2, C2 etc (inside worksheet: VesselDetail) to be reflected accordingly in worksheet: ServiceReport

    Is this possible?

    Thanks for the response Roy!
    Attached Images Attached Images

  6. #6
    Registered User
    Join Date
    11-21-2010
    Location
    Singapore
    MS-Off Ver
    Excel 2007
    Posts
    9

    Re: Combobox help!

    Is there no other way to work around this?

  7. #7
    Forum Expert royUK's Avatar
    Join Date
    11-18-2003
    Location
    Derbyshire,UK
    MS-Off Ver
    Xp; 2007; 2010
    Posts
    26,200

    Re: Combobox help!

    As I said yesterday, post a workbook. Can't work with images

  8. #8
    Registered User
    Join Date
    11-21-2010
    Location
    Singapore
    MS-Off Ver
    Excel 2007
    Posts
    9

    Re: Combobox help!

    Dear all,

    As attached is a test worksheet.

    After choosing a vessel name in the combobox in "sheet1". The appropriate data located in the "vessel" worksheet, related to the name (eg. callsign, equipment type, ISN, IMN) will then be also be transfered over to "Vessel & equipment details" in "ServiceReport" worksheet after user click the "confirm" commandbutton in "sheet1"

    How can this be done?

    Would appreciate the help.

    Thank you!
    Attached Files Attached Files

+ 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