Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,272
Default excel menubar

Normally, ActionControl is invoked when a button on a toolbar or a menu is
pressed, that is included in its OnAction macro. That way, you have implicit
access to the object pressed.

To make your menu only visible to that workbook would need to set the
visibility property to True/False in the workbook activate/deactivate
events.

--

HTH

Bob Phillips
... looking out across Poole Harbour to the Purbecks
(remove nothere from the email address if mailing direct)

"majikman " wrote in message
...
Bob,

i tried both of the below lines and neither works. it gives me a
compiler error saying that data member wasn't found

Application.CommandBars("Worksheet Menu Bar").ActionControl.State =
msoButtonUp

Application.CommandBars("Worksheet Menu Bar").State = msoButtonUp

however,
Application.CommandBars.ActionControl.State = msoButtonUp

does work. however, that line will only apply the state of the .State
member to the worksheet or chart that it is caled from. do you see what
i might be doing wrong? thanks

btw, what code do i add to make my menubar visible only in the workbook
that the vba code is existent in? i don't want the menubar to show up
when another workbook is open at the same time, which it currently is
doing.


---
Message posted from http://www.ExcelForum.com/



Reply
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
Can I change the menubar to look like excel 2003? Rude Reality New Users to Excel 5 July 12th 07 03:39 AM
Excel Menubar text is backwards xlionx Excel Discussion (Misc queries) 4 February 15th 06 06:04 PM
Create your own Menubar cassy01 Excel Discussion (Misc queries) 1 September 6th 05 01:03 PM
Excel Menubar/File Category Lost isabella9 Excel Discussion (Misc queries) 2 July 28th 05 05:07 PM
menubar problem - excel 2000 cyclingsal Excel Programming 1 May 20th 04 03:27 AM


All times are GMT +1. The time now is 01:18 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"