ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Displaying and Hiding Radio Boxes (https://www.excelbanter.com/excel-programming/302588-displaying-hiding-radio-boxes.html)

Lester

Displaying and Hiding Radio Boxes
 
Hello,

I need to make Radio Boxes (created using the Control Toolbox on the
Excel sheet) to appear or disappear depending on the values generated
by a formula in a given cell on the spreadsheet.

Thanks

Lester

Mark Thorpe[_2_]

Displaying and Hiding Radio Boxes
 
You'll want to set the Visible property of the option button within the
Worksheet_Calculate subroutine. For example...

Private Sub Worksheet_Calculate()
If Cells(1, 1).Value 0 Then
OptionButton1.Visible = True
Else
OptionButton1.Visible = False
End If
End Sub


"Lester" wrote in message
om...
Hello,

I need to make Radio Boxes (created using the Control Toolbox on the
Excel sheet) to appear or disappear depending on the values generated
by a formula in a given cell on the spreadsheet.

Thanks

Lester




Lester Lee

Displaying and Hiding Radio Boxes
 


Thanks so much it worked

*** Sent via Devdex http://www.devdex.com ***
Don't just participate in USENET...get rewarded for it!


All times are GMT +1. The time now is 02:28 PM.

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