Form Control --> Option Button avoid all newly created option buttons to be linked to each other.

FuNeS13

Board Regular
Joined
Oct 25, 2016
Messages
160
Office Version
  1. 365
  2. 2016
Platform
  1. Windows
  2. Mobile
  3. Web
I recently had to add rows to a file that has two option button per row for a pass fail boolean... the original option button work great for each row, but if I copy the option buttons to the rows below or if I add them separately they all link to the each other even on different rows, if I try to group them together and/or link them to a specific cell in the row they still all change... Is there away to work around this?
 

Excel Facts

Shade all formula cells
To shade all formula cells: Home, Find & Select, Formulas to select all formulas. Then apply a light fill color.
I believe it is never a good ideal to have buttons on numerous rows to perform a Task for the reason you have mentioned here.

I suggest using a sheet double click event script.

If you double click on any cell in column "A" a specific event happens
If you double click on any cell in column "B" a specific event happens

Only two small scripts are needed no matter how many rows.
 
Upvote 0
Here in this example if you double click on any cell in column A
The value "Pass" will be entered in column C
If you double click on any cell in column B
The value "Fail" will be entered in column C

This is an auto sheet event script
Your Workbook must be Macro enabled
To install this code:
Right-click on the sheet tab
Select View Code from the pop-up context menu
Paste the code in the VBA edit window

VBA Code:
Private Sub Worksheet_BeforeDoubleClick(ByVal Target As Range, Cancel As Boolean)
'Modified  12/14/2021  3:33:05 AM  EST
Cancel = True

    Select Case Target.Column
        Case 1
            Target(, 3).Value = "Pass"

        Case 2
            Target(, 2).Value = "Fail"

    End Select
End Sub
 
Upvote 0
Thank you very much for your help, it totally makes sense... I will try it out
 
Upvote 0

Forum statistics

Threads
1,214,632
Messages
6,120,655
Members
448,975
Latest member
sweeberry

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top