Consulting

Results 1 to 10 of 10

Thread: Solved: Drop Down Box Settings

  1. #1
    VBAX Contributor
    Joined
    Jun 2009
    Posts
    110
    Location

    Solved: Drop Down Box Settings

    Hi,

    I would like to be able to control some drop down boxes according to the selection of some variables that also come from drop down box but i do not know how to do it.

    I've attached the excel sample file.

    Can anyone help?

  2. #2
    VBAX Expert
    Joined
    Feb 2005
    Location
    Nanaimo, British Columbia, Cananda
    Posts
    568
    Location
    uh...do these have to be html controls?
    Cheers,

    dr

    "Questions, help and advice for free, small projects by donation. large projects by quote"

    http:\\www.ExcelVBA.joellerabu.com

  3. #3
    VBAX Contributor
    Joined
    Jun 2009
    Posts
    110
    Location
    Hmm well, they're in an excel file only. so i guess i'm not sure what the answer is.

  4. #4
    VBAX Expert
    Joined
    Feb 2005
    Location
    Nanaimo, British Columbia, Cananda
    Posts
    568
    Location
    Hi,

    Well if we change then to Forms or Control Toolbox normal Comboboxes rather than HTMLSelect ones you have access to a lot of properties etc.

    I'll knock off an example with explainations...
    Cheers,

    dr

    "Questions, help and advice for free, small projects by donation. large projects by quote"

    http:\\www.ExcelVBA.joellerabu.com

  5. #5
    Moderator VBAX Wizard lucas's Avatar
    Joined
    Jun 2004
    Location
    Tulsa, Oklahoma
    Posts
    7,323
    Location
    Well, I just refreshed and saw that rbrhodes is going to provide you with an example and it will probably be better and clearer than mine but I went to the trouble so I'll post it in the hopes that it will help.

    I also did not use the same controls that you did. I used normal combobox and radio buttons.

    See attached
    Steve
    "Nearly all men can stand adversity, but if you want to test a man's character, give him power."
    -Abraham Lincoln

  6. #6
    VBAX Expert
    Joined
    Feb 2005
    Location
    Nanaimo, British Columbia, Cananda
    Posts
    568
    Location
    Hi,

    Here's an example using Control ToolBox comboboxes and radiobuttons (option buttons).

    I put your lists in Col Q +, and used the ListFillRange and ListRows properties to fill the Comboboxes. There are lots of other ways to do this...

    Anyways, as you will see, the boxes appear and dissapear as commanded! Used the .visible property.
    Cheers,

    dr

    "Questions, help and advice for free, small projects by donation. large projects by quote"

    http:\\www.ExcelVBA.joellerabu.com

  7. #7
    VBAX Contributor
    Joined
    Jun 2009
    Posts
    110
    Location
    Quote Originally Posted by rbrhodes
    Hi,

    Well if we change then to Forms or Control Toolbox normal Comboboxes rather than HTMLSelect ones you have access to a lot of properties etc.

    I'll knock off an example with explainations...

    OK, thanks. i'll study it and im sure i will learn from it....thanx...i'll let you know buddy..

  8. #8
    VBAX Contributor
    Joined
    Jun 2009
    Posts
    110
    Location
    rbrhodes...........

    You da Man...It does as expected. It looks great....Now, i'm wondering how many different ways this can be done. I can only imagine........

  9. #9
    VBAX Contributor
    Joined
    Jun 2009
    Posts
    110
    Location
    Lucas.....Thanx to you also. It works as expected as well....

    You guys R GrEaT.................

  10. #10
    VBAX Expert
    Joined
    Feb 2005
    Location
    Nanaimo, British Columbia, Cananda
    Posts
    568
    Location
    Hi k,

    View menu, Toolbars and Forms. This provides simple buttons that a macro can be assigned to.

    View menu, Toolbars and Control Toolbox. This provides ActiveX controls that carry their own code and have more 'properties'.

    Put a 'Forms' button of combobox on the sheet and right click it. Nose around what you can do from that menu. Then experiment with the Control Toolbox controls. Click 'Design Mode' - it's the blue triangle and ruler thingy to place onjewcts on the sheet. Right click the button (or whatever) of course and view properties, view code etc.

    You'll probably be acessing the help files, the web and us but it's amazing what you can do.

    learn on McDuff...
    Cheers,

    dr

    "Questions, help and advice for free, small projects by donation. large projects by quote"

    http:\\www.ExcelVBA.joellerabu.com

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •