Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
I have built a custom menu using John Walkenbach's MenuMaker routine located
at: http://j-walk.com/ss/excel/tips/tip53.htm What I would like is the capability to add a check mark (toggle on/off) like is the case on the standard Excel menu for "View / Toolbars / Standard". Is this a FaceID parameter? Any advice would be greatly appreciated. |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
The property in question is the state property.
This is an example of a macro assigned to a commandbar that would do this With Application.CommandBars.Action*Control If .State = msoButtonUp Then ActiveWorkbook.Worksheets(.Cap*tion).Visible = xlSheetHidden .State = msoButtonDown Else ActiveWorkbook.Worksheets(.Cap*tion).Visible = xlSheetVisible .State = msoButtonUp End If End With You would need to add another column to the menu table with the initial state, and then you have to toggle it within other code using code like that shown above. -- HTH Bob Phillips (replace somewhere in email address with gmail if mailing direct) "Steve" wrote in message ... I have built a custom menu using John Walkenbach's MenuMaker routine located at: http://j-walk.com/ss/excel/tips/tip53.htm What I would like is the capability to add a check mark (toggle on/off) like is the case on the standard Excel menu for "View / Toolbars / Standard". Is this a FaceID parameter? Any advice would be greatly appreciated. |
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Thanks Bob. Worked Great!!
"Bob Phillips" wrote: The property in question is the state property. This is an example of a macro assigned to a commandbar that would do this With Application.CommandBars.ActionÂ*Control If .State = msoButtonUp Then ActiveWorkbook.Worksheets(.CapÂ*tion).Visible = xlSheetHidden .State = msoButtonDown Else ActiveWorkbook.Worksheets(.CapÂ*tion).Visible = xlSheetVisible .State = msoButtonUp End If End With You would need to add another column to the menu table with the initial state, and then you have to toggle it within other code using code like that shown above. -- HTH Bob Phillips (replace somewhere in email address with gmail if mailing direct) "Steve" wrote in message ... I have built a custom menu using John Walkenbach's MenuMaker routine located at: http://j-walk.com/ss/excel/tips/tip53.htm What I would like is the capability to add a check mark (toggle on/off) like is the case on the standard Excel menu for "View / Toolbars / Standard". Is this a FaceID parameter? Any advice would be greatly appreciated. |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Changing text case in entire database column from JOHN to John | Excel Discussion (Misc queries) | |||
John Walkenbach's MenuMaker Error | Excel Programming | |||
Custom FaceID's for Custom Menus | Excel Programming | |||
how to format Doe,John to Doe, John (space after a comma) | Excel Worksheet Functions | |||
Custom faces for custom menus/commandbars | Excel Programming |