Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Use a regular msoControlButton but use something like this for the on action...
Private Sub CheckButton() Dim cbrMenu As CommandBar Dim ctlCBarControl As CommandBarButton Set cbrMenu = CommandBars("MyBar") Set ctlCBarControl = cbrMenu.Controls("MyMenuName).Controls("MyControl" ) If ctlCBarControl.State = msoButtonDown Then 'some code ctlCBarControl.State = msoButtonUp Else 'somecode ctlCBarControl.State = msoButtonDown End If Set cbrMenu = Nothing Set ctlCBarControl = Nothing End Sub -- HTH... Jim Thomlinson "Redan" wrote: Hello, I would like to add control that would be like a checkbox in my commandbar for excel 2002. Is there any checkbox for msoControl or othere ways to do so ? Thanks in advance for the help !!! |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
How to have Checkbox A uncheck with checked Checkbox B | Excel Discussion (Misc queries) | |||
link a checkbox in a sheet to a checkbox on a userform? | Excel Programming | |||
How do I link one checkbox to update another checkbox? | Excel Programming | |||
cant dim as commandbar | Excel Programming | |||
checkbox on form reset from checkbox on sheet | Excel Programming |