LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Worksheet menu bar using code????


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
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
VBA code for drop down menu problem. mj_bowen Excel Discussion (Misc queries) 5 February 6th 10 12:10 PM
Can I create a worksheet menu to select each other worksheet pippagrace Excel Discussion (Misc queries) 4 June 23rd 06 01:28 PM
Worksheet menu bar Lionel M Fridjhon Excel Discussion (Misc queries) 2 June 9th 06 11:54 PM
worksheet menu bar ditchy Excel Discussion (Misc queries) 4 May 4th 05 10:09 AM
Restoring Excel menu bar settings that were changed by code Jon Peltier[_3_] Excel Programming 5 August 4th 03 09:38 PM


All times are GMT +1. The time now is 10:32 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"