+ Reply to Thread
Results 1 to 6 of 6

Group option oval buttons

  1. #1
    Forum Contributor
    Join Date
    10-03-2012
    Location
    USA
    MS-Off Ver
    2010
    Posts
    496

    Group option oval buttons

    Hello,
    I am looking for help on VBA to have (3) oval option form buttons that are in group.
    Click any button, the oval button will be filled in black and line color in black.

    Click a different button, it will be filled in black and line color in black. The shape was clicked
    previously will change filled to white and line color to dark pink.

    See attached Excel file.

    Thanks
    Last edited by Rocky2013; 03-24-2020 at 09:14 PM.

  2. #2
    Administrator 6StringJazzer's Avatar
    Join Date
    01-27-2010
    Location
    Tysons Corner, VA, USA
    MS-Off Ver
    MS365 Family 64-bit
    Posts
    24,721

    Re: Group option oval buttons

    Is there a reason for the formatting you want instead of just using standard radio buttons? Your problem will require a bunch of code but could be done in a minute using standard radio buttons, and with no code.
    Jeff
    | | |會 |會 |會 |會 | |:| | |會 |會
    Read the rules
    Use code tags to [code]enclose your code![/code]

  3. #3
    Valued Forum Contributor Eastw00d's Avatar
    Join Date
    02-29-2020
    Location
    Breda, NL
    MS-Off Ver
    2016, 2019
    Posts
    833

    Re: Group option oval buttons

    Why don't you use the code I sent in another post? And adapt it a little.

    https://www.excelforum.com/excel-pro...-to-black.html

    Cheers
    Erwin
    Last edited by 6StringJazzer; 03-23-2020 at 06:48 PM. Reason: Removed HTML tags from URL link to activate it
    I started learning VBA because I was lazy ...
    Still developing.... being more lazy...

  4. #4
    Forum Contributor
    Join Date
    10-03-2012
    Location
    USA
    MS-Off Ver
    2010
    Posts
    496

    Re: Group option oval buttons

    Hello,
    The form I want to duplicate has oval shape, I try to match that using in Excel. I search I found I had a code to group the oval buttons,
    but I can not figure out how to specify user's linked cell position. The code seems specify column J, do not understand the code where
    row number is specified. I want to specify the linked cell where I want to be located.

    Sorry for that, I should look first.

    Thanks
    Attached Files Attached Files

  5. #5
    Valued Forum Contributor Eastw00d's Avatar
    Join Date
    02-29-2020
    Location
    Breda, NL
    MS-Off Ver
    2016, 2019
    Posts
    833

    Re: Group option oval buttons

    This is where your number is going:
    Please Login or Register  to view this content.
    10 is for column "J' and grpNumber is the groupnumber of the shapes in your worksheet,
    but you can change that to your own idea.

    Cheers
    Erwin
    Last edited by Eastw00d; 03-24-2020 at 10:52 AM.

  6. #6
    Forum Contributor
    Join Date
    10-03-2012
    Location
    USA
    MS-Off Ver
    2010
    Posts
    496

    Re: Group option oval buttons

    Hello Eastwood,
    I played around with changing group number and column to place where I want
    the linked cell to be. It works so I am OK with this now.

    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] How do I group option buttons?
    By machinegod in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 12-09-2019, 01:11 PM
  2. Option Buttons: Selection in One Group Enables the Next Group
    By excelforumkeys in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 09-24-2014, 04:00 PM
  3. [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
  4. Group Box with Option Buttons
    By e4excel in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 12-01-2009, 02:05 AM
  5. [SOLVED] group option buttons
    By umba-sr in forum Excel General
    Replies: 1
    Last Post: 03-07-2006, 10:10 AM
  6. Option buttons: How to get the selected option from a group?
    By naddad in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 12-21-2005, 01:10 PM
  7. [SOLVED] Option Buttons in Group Box
    By JAMES T. in forum Excel General
    Replies: 4
    Last Post: 03-22-2005, 05:06 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