Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]() I am trying to create a custom Main Menu for a spreadsheet. I can install macro in the thisworksheet, workbook to edit th Worksheet menu bar and when the spreadsheet opens, it will edit th main menu. But... - I have not been successfull in reseting the worksheet menu bar whe the spreadsheet closes. How do you reset the Worksheet menu bar whe you click the close box? - Can a custom worksheet menu bar be created and attached to wor with only one spreadsheet? And how? Here is the code I am playing with to develop a custom menu. The secon sub is not working. Code ------------------- Private Sub Workbook_Open() Application.CommandBars("Tools").Controls(2).Delet e End Sub Private Sub Application_WorkbookBeforeClose(ByVal playmenu As Workbook, _ Cancel As Boolean) Application.CommandBars("Tools").Controls.Add Type:=msoControlButton, ID:= _ 793, Befo=2 End Sub ------------------- ----------------------------------------------- ~~ Message posted from http://www.ExcelTip.com ~~View and post usenet messages directly from http://www.ExcelForum.com |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
VBA code for drop down menu problem. | Excel Discussion (Misc queries) | |||
Can I create a worksheet menu to select each other worksheet | Excel Discussion (Misc queries) | |||
Worksheet menu bar | Excel Discussion (Misc queries) | |||
worksheet menu bar | Excel Discussion (Misc queries) | |||
Restoring Excel menu bar settings that were changed by code | Excel Programming |