Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
i have an option button on sheet1 that was created
with the forms toolbar. how do i toggle the state of button the from within a macro. (the option button name is "Option Button 57") |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hi Pete,
Try: Sub AAA() With ActiveSheet.OptionButtons("Option Button 57") If .Value = xlOn Then .Value = xlOff Else .Value = xlOn End If End With End Sub --- Regards, Norman "Pete" wrote in message ... i have an option button on sheet1 that was created with the forms toolbar. how do i toggle the state of button the from within a macro. (the option button name is "Option Button 57") |
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hi Pete,
Or, more concisely, Sub AAA2() With ActiveSheet.OptionButtons("Option Button 57") .Value = Not .Value = xlOn End With End Sub --- Regards, Norman "Norman Jones" wrote in message ... Hi Pete, Try: Sub AAA() With ActiveSheet.OptionButtons("Option Button 57") If .Value = xlOn Then .Value = xlOff Else .Value = xlOn End If End With End Sub --- Regards, Norman "Pete" wrote in message ... i have an option button on sheet1 that was created with the forms toolbar. how do i toggle the state of button the from within a macro. (the option button name is "Option Button 57") |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
option button ? | Excel Discussion (Misc queries) | |||
keep source formatting is not an option in paste option button | Excel Discussion (Misc queries) | |||
Option Button | Excel Programming | |||
option button | Excel Discussion (Misc queries) | |||
VBA - Option Button | Excel Programming |