XL98: Worksheet Menu Bar May Not Appear As Expected (184897)
The information in this article applies to:
- Microsoft Excel 98 Macintosh Edition
This article was previously published under Q184897 SYMPTOMS
After you run a Microsoft Visual Basic for Applications macro to create a
floating toolbar, only the Apple and Help menus appear on the menu bar.
CAUSE
This problem occurs when you attempt to replace the worksheet menu bar
with a custom floating menu bar. To see an example of this behavior, please
see the "More Information" section in this article.
WORKAROUNDMicrosoft provides programming examples for illustration only, without warranty either expressed or implied. This includes, but is not limited to, the implied warranties of merchantability or fitness for a particular purpose. This article assumes that you are familiar with the programming language that is being demonstrated and with the tools that are used to create and to debug procedures. Microsoft support engineers can help explain the functionality of a particular procedure, but they will not modify these examples to provide added functionality or construct procedures to meet your specific requirements.
You may be able to work around this problem by changing the MenuBar
argument of the Add method to False instead of True. The following sample
macro creates a new toolbar but does not replace the menu bar:
Sub Add_Toolbar()
' The following line of code creates a floating toolbar that does not
' replace the menu bar.
' This is specified by the MenuBar argument, which in the code below,
' is set to False.
Application.CommandBars.Add "newbar", msoBarFloating, False, True
' Display the CommandBar.
CommandBars("newbar").Visible = True
End Sub
STATUS
This is by design in Microsoft Excel 98 Macintosh Edition.
REFERENCES
For more information about CommandBars, from the Visual Basic Editor,
click the Office Assistant, type CommandBars Collection, click Search,
and then click to view "CommandBars Collection Object."
NOTE: If the Assistant is hidden, click the Office Assistant button on the
Standard toolbar. If the Assistant is not able to answer your query, please
see the following article in the Microsoft Knowledge Base:
176476 OFF: Office Assistant Not Answering Visual Basic Questions
Modification Type: | Major | Last Reviewed: | 6/17/2005 |
---|
Keywords: | kbdtacode kbprb kbProgramming KB184897 |
---|
|