ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   Unselect Option Box (https://www.excelbanter.com/excel-discussion-misc-queries/26550-unselect-option-box.html)

Jon

Unselect Option Box
 
I have 2 option boxes in a worksheet, how can I unselect both boxes without
deleting the linked cell reference?

Dave Peterson

I used optionbuttons from the control toolbox toolbar.

Then I used a macro that would clear the optionbuttons:

Option Explicit
Sub testme()
With Worksheets("sheet1")
.OptionButton1.Value = False
.OptionButton2.Value = False
End With
End Sub

Have you thought of putting a third button on the worksheet that represents
Neither?

Jon wrote:

I have 2 option boxes in a worksheet, how can I unselect both boxes without
deleting the linked cell reference?


--

Dave Peterson


All times are GMT +1. The time now is 09:07 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com