+ Reply to Thread
Results 1 to 4 of 4

Check Box that shows options in Combo Box if Checked, and Hides if Not Checked

  1. #1
    Registered User
    Join Date
    12-09-2013
    Location
    London, England
    MS-Off Ver
    Excel 2007
    Posts
    2

    Check Box that shows options in Combo Box if Checked, and Hides if Not Checked

    I'm stuck on a User Form Excel 2007 that I have no idea how to make! (For a project)

    I have 2 check boxes with the Phone Brand names (Apple,Samsung), I wanted these to Show options of corresponding models in a Combo Box.

    Example: Apple Checked Combo Box Shows (Apple 5C, Apple 5S, Apple 4)
    Samsung NOT Checked so Combo Box Hides (Samsung Galaxy Note 2, Ace and Ace 2)


    Furthermore depending on what brand of phone I choose and then model, I would like it to input the price into a cell, in order to calculate a final bill. (Taking information from a table).

    Anyone got any idea's?! Iv'e never used VBA before and I have been pulling my hair out for days!

  2. #2
    Forum Contributor
    Join Date
    11-15-2012
    Location
    Buffalo, NY
    MS-Off Ver
    Office 365
    Posts
    282

    Re: Check Box that shows options in Combo Box if Checked, and Hides if Not Checked

    Hi Jodie,

    Save that hair!

    Here's a quick take on a form that may meet your needs. (It only identifies the requirements that you have specified).
    Open up the spreadsheet, and press Alt+F11, to bring up the VBA environment. Doble-click on UserFOrm1 (on the left hand side, in the folder called forms), and press F5.

    As you choose different combinations (4 of them) of manufacturers, you'll see the criteria that will be used to load the phone.

    Note:

    This model allows you to choose either or both or none, because you didn't indicate that the selection was mutually exclusive.

    Let me know if this gives you any ideas (it is very simple code, and you should be able to understand it just be looking at it), and then get back to us!

    HTH

    Tony
    Attached Files Attached Files

  3. #3
    Registered User
    Join Date
    12-09-2013
    Location
    London, England
    MS-Off Ver
    Excel 2007
    Posts
    2

    Re: Check Box that shows options in Combo Box if Checked, and Hides if Not Checked

    Hello Tony,
    Haha
    I do understand it, just tested it, it doesn't load the models, also the price bar isn't needed... but more like once I select a phone "Apple 5s" and press okay, it inputs the model chosen and the corresponding price into a cell in the spreadsheet which then calculates a total bill.

    Thanks,
    Jodie

  4. #4
    Forum Contributor
    Join Date
    11-15-2012
    Location
    Buffalo, NY
    MS-Off Ver
    Office 365
    Posts
    282

    Re: Check Box that shows options in Combo Box if Checked, and Hides if Not Checked

    Hi Jodie

    Well, it was only a starting point The main issue was whether or not you wanted to allow both manufacturers to be selected.

    I've updated it to do most of what you want (have to leave something for you to get paid for, right!), so take another look and let me know.

    This will allow you (with a couple of tweaks) to put the price (and the description) into an invoice line. However, you don't mention where that invoice line is, so I can't really do that bit for you.

    HTH
    Tony

    PS How's the weather in London?
    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)

Similar Threads

  1. [SOLVED] When checkbox is checked it does not copy to new sheet. Only if not checked using false
    By thelisa in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 08-28-2013, 07:59 AM
  2. Automatically check one or more check boxes when a parent check box is manually checked
    By Steverizer in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 03-28-2013, 01:56 PM
  3. Replies: 2
    Last Post: 12-19-2012, 11:23 PM
  4. Replies: 1
    Last Post: 12-17-2005, 05:56 PM
  5. Disableing a check box when another is checked
    By Rich Kniatt in forum Excel General
    Replies: 2
    Last Post: 01-28-2005, 10:47 AM

Tags for this Thread

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