ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   Worksheets and Control Option Buttons (https://www.excelbanter.com/excel-worksheet-functions/138357-worksheets-control-option-buttons.html)

KHaydel

Worksheets and Control Option Buttons
 
I am running Excel 2002. I have a Workbook with 4 worksheets. I created a
Control Option Button (OptBtn01) on Sheet1. I have a Control Check Box
(ChkBx01) on Sheet4. I would like to change Control Check Box (ChkBx01) to
disabled (Enabled = False) whenever the Control Option Button (OptBtn01)
Value is True. Can anyone help?

Thanks in advance.


Dave Peterson

Worksheets and Control Option Buttons
 
I put this under sheet1:

Option Explicit
Private Sub OptBtn01_Change()
Worksheets("sheet4").OLEObjects("ChkBx01").Enabled _
= CBool(Me.OptBtn01.Value = False)
End Sub




KHaydel wrote:

I am running Excel 2002. I have a Workbook with 4 worksheets. I created a
Control Option Button (OptBtn01) on Sheet1. I have a Control Check Box
(ChkBx01) on Sheet4. I would like to change Control Check Box (ChkBx01) to
disabled (Enabled = False) whenever the Control Option Button (OptBtn01)
Value is True. Can anyone help?

Thanks in advance.


--

Dave Peterson


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

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