+ Reply to Thread
Results 1 to 5 of 5

enable certain combo buttons based on user selected option buttons

  1. #1
    Forum Contributor
    Join Date
    12-01-2007
    Location
    USA-North Carolina
    MS-Off Ver
    MS Office 2016
    Posts
    2,662

    enable certain combo buttons based on user selected option buttons

    hi,

    I have enclosed a file as well.

    i have a worksheet which contains over a hundred option buttons.

    Also, on this worksheet are a 3 combo buttons and a text box.

    I want to enable and/or disable the combo buttons / text box based on what option button is selected.

    The only way i know to do this is to put code in each option button click event.......is there a better way?

  2. #2
    Forum Contributor
    Join Date
    12-01-2007
    Location
    USA-North Carolina
    MS-Off Ver
    MS Office 2016
    Posts
    2,662

    Re: enable certain combo buttons based on user selected option buttons

    ok, done a lot of searching and cant find any better way so i am going to add code to each option_click event to enable and/or disable combo-boxes.

    However, i have this code and its not doing anything at all......

    Please Login or Register  to view this content.
    i am also enclosing the actual test file

  3. #3
    Forum Contributor
    Join Date
    12-01-2007
    Location
    USA-North Carolina
    MS-Off Ver
    MS Office 2016
    Posts
    2,662

    Re: enable certain combo buttons based on user selected option buttons

    i think its actually working.........just hard to tell if its greyed out or not ........but i think its working........

  4. #4
    Forum Expert jaslake's Avatar
    Join Date
    02-21-2009
    Location
    Atwood Lake in Mid NE Ohio...look it up.
    MS-Off Ver
    Excel 2010 2019
    Posts
    12,749

    Re: enable certain combo buttons based on user selected option buttons

    Hi welches101

    The Code you posted appears to work fine...

    Don't know what you have in mind for these 100 Option Buttons but you may wish to consider a Class Module. This Link contains a primer on how to do so...
    http://www.jkp-ads.com/articles/ControlHandler02.asp
    John

    If you have issues with Code I've provided, I appreciate your feedback.

    In the event Code provided resolves your issue, please mark your Thread as SOLVED.

    If you're satisfied by any members response to your issue please use the star icon at the lower left of their post.

  5. #5
    Forum Contributor
    Join Date
    12-01-2007
    Location
    USA-North Carolina
    MS-Off Ver
    MS Office 2016
    Posts
    2,662

    Re: enable certain combo buttons based on user selected option buttons

    thanks jaslake.

    I think this probably exactly what i need but after reviewing the info........which i enjoyed..........it might just be easier for each option_click event to assign a call to a standard procedure to handle what it is i was hoping to do.

    but thanks i had no idea about creating class stuff..........

    the more you know the more you know you have more to learn.......thanks.

+ 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] Selecting Line shape based on selected Option Buttons' text
    By Scott_Dreppan in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 04-26-2013, 12:41 PM
  2. [SOLVED] Disabling an Entire Frame with Option Buttons if other Option Buttons are not clicked.
    By e4excel in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 10-20-2012, 04:07 AM
  3. Combo box and option buttons
    By mike0123m in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 11-15-2011, 05:43 AM
  4. Option Buttons and Combo Box Help
    By Mr.G. in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 06-03-2009, 02:54 AM
  5. enable option buttons
    By natanz in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 02-16-2006, 11:40 AM

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