+ Reply to Thread
Results 1 to 9 of 9

Help using active x option box

Hybrid View

  1. #1
    Registered User
    Join Date
    03-05-2020
    Location
    Stoke on Trent, England
    MS-Off Ver
    Excel 2016
    Posts
    59

    Help using active x option box

    Hello all,

    I have created a basic example which hopefully I can relate to my project at work.

    I need to select one or more options (hat, tie, shoe) and then have whatever is selected add together in my tables total row

    Test 1.PNG

    Any ideas?
    Attached Files Attached Files

  2. #2
    Valued Forum Contributor
    Join Date
    03-24-2020
    Location
    Thailand
    MS-Off Ver
    Office 2021
    Posts
    968

    Re: Help using active x option box

    Hi there,

    Given that you are using radio buttons, I assume it will always only be one option.
    Using the Form Control radio button, you don't need any VBA for that.
    Link the 3 buttons to one cell, which then controls the formula to sum your data.
    Attached Files Attached Files

  3. #3
    Registered User
    Join Date
    03-05-2020
    Location
    Stoke on Trent, England
    MS-Off Ver
    Excel 2016
    Posts
    59

    Re: Help using active x option box

    Many thanks for the reply, I do need to use combinations of more than one. What is best to do this?

  4. #4
    Valued Forum Contributor
    Join Date
    03-24-2020
    Location
    Thailand
    MS-Off Ver
    Office 2021
    Posts
    968

    Re: Help using active x option box

    Have you considered using Slicers?

  5. #5
    Registered User
    Join Date
    03-05-2020
    Location
    Stoke on Trent, England
    MS-Off Ver
    Excel 2016
    Posts
    59

    Re: Help using active x option box

    I don't think that is going to work. In my master workfile the table is hidden from view as the data in it is used elsewhere in a calculation. All the user see's are the product options. At the minute this is done by a drop down list which covers all the combinations and then the table has all combinations added together. I then use vlookup to select the row I require based on the drop down list selection and I can then use this data elsewhere in my file. If the product options could be selected and the total row could add them together based on the selections then this would make the file easier to update in the future.

  6. #6
    Registered User
    Join Date
    03-05-2020
    Location
    Stoke on Trent, England
    MS-Off Ver
    Excel 2016
    Posts
    59

    Re: Help using active x option box

    Can it be achieved using checkboxes?

  7. #7
    Forum Expert torachan's Avatar
    Join Date
    12-27-2012
    Location
    market harborough, england
    MS-Off Ver
    Excel 2010
    Posts
    4,411

    Re: Help using active x option box

    Using checkboxes.
    macro on each checkbox
    Attached Files Attached Files

  8. #8
    Registered User
    Join Date
    03-05-2020
    Location
    Stoke on Trent, England
    MS-Off Ver
    Excel 2016
    Posts
    59

    Re: Help using active x option box

    Perfect, Many thanks.

  9. #9
    Valued Forum Contributor
    Join Date
    03-24-2020
    Location
    Thailand
    MS-Off Ver
    Office 2021
    Posts
    968

    Re: Help using active x option box

    As mentioned above, radio buttons allow only one selection. For multiple choice, use Tick-Boxes.
    Each Tick-Box is linked to a separate cell and will return True/False. You can move the tick-boxes on top to hid it.
    We then simply use the Sumifs function and sum up where the value is True.
    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] Active-X text box with scrolling bar with vlookup option ?
    By ulothar in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 01-20-2017, 08:49 AM
  2. [SOLVED] Help with code to reset all the Active X Option Boxes on Worksheet
    By rv02 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 09-15-2015, 07:57 AM
  3. [SOLVED] Can you select multiple option in an Active X combo box?
    By Butcher1 in forum Excel General
    Replies: 1
    Last Post: 10-30-2014, 12:10 AM
  4. [SOLVED] Fill a listbox from a non active sheet with option button
    By molesy in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 05-13-2014, 07:44 AM
  5. Option button value to active cell ?
    By dannac in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 12-04-2012, 08:40 PM
  6. Select active X option button and drop down in a another excel file using macro
    By vishal_dhami in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 06-25-2012, 07:20 AM
  7. Option button (active control) code to perform a calculation
    By Taggsuk in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 11-18-2008, 07:00 PM

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