+ Reply to Thread
Results 1 to 5 of 5

ComboBox and Option Buttons

  1. #1
    Forum Contributor
    Join Date
    11-17-2004
    MS-Off Ver
    Office 2016
    Posts
    527

    ComboBox and Option Buttons

    I have a workbook with a table on Sheet 4 with 12 columns of data and a ComboBox and Radio Button on Sheet 2.

    I’d like the ComboBox to list the cities from the first column of data from the table (this should also be dynamic as rows of data are added to the table). I’d then like to know how to populate cells with the data from the rest of the row as selected by the ComboBox choice. The attached example is set up for cells T14-W22 to receive the data.

    Secondarily, the Option Buttons should operate alternately to select a subset of the same row of data, either the High or Low values (as shown in the table), and these values would be used to populate a second set of cells, set up in cells D23-D29 in the example attached.

    ComboBoxandOptionButtons.xlsm

  2. #2
    Forum Expert
    Join Date
    07-31-2010
    Location
    California
    MS-Off Ver
    Excel 2007
    Posts
    4,070

    Re: ComboBox and Option Buttons

    This will populate your ComboBox on the first sheet based upon the states on the second sheet. It will update whenever you add a new state. Put the code in the worksheet change event for the second sheet. I ran out of time and was not able to work on the other stuff. Maybe I will have more time this weekend.

    Please Login or Register  to view this content.

  3. #3
    Forum Contributor
    Join Date
    11-17-2004
    MS-Off Ver
    Office 2016
    Posts
    527

    Re: ComboBox and Option Buttons

    This worked out well so far.

  4. #4
    Forum Expert
    Join Date
    07-31-2010
    Location
    California
    MS-Off Ver
    Excel 2007
    Posts
    4,070

    Re: ComboBox and Option Buttons

    Here is the rest of it. It wasn't clear how the radial buttons would factor in so I just utilized whatever their values was when the ComboBox changes. IMPORTANT: YOU MUST UNMERGE CELLS T14-W22!!!!

    Please Login or Register  to view this content.

  5. #5
    Forum Contributor
    Join Date
    11-17-2004
    MS-Off Ver
    Office 2016
    Posts
    527

    Re: ComboBox and Option Buttons

    This is great and I really appreciate the work involved. This worked out just as I needed it to. I added this code to the option buttons click event too so the values change with the buttons and not just with the ComboBox. Now, if only I could get merged fields to update...I have removed the merge settings and it works great, so it looks like I just need to tweak some of the other fields around them so I can have the centered look I'm after, but otherwise this is exactly what I needed.

    Thanks again...

+ 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] Multiple option buttons - Need VBA to disable second group of option buttns based on respo
    By ex123 in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 06-19-2013, 03:30 AM
  2. How can I insert multiple sets of option buttons (radio buttons) in Excel 2010?
    By mickwooduclan in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 04-25-2013, 10:01 AM
  3. [SOLVED] Option Buttons to Change ComboBox Values Dynamically
    By Stonesteel15 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 12-03-2012, 11:48 PM
  4. [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
  5. [SOLVED] Option Buttons-putting questionaire using options buttons
    By Ashman in forum Excel General
    Replies: 2
    Last Post: 07-10-2005, 04:05 PM

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