Microsoft KB Archive/178736

= XL98: Macro Command Menubars (xlWorkBook) Is Not Valid =

Article ID: 178736

Article Last Modified on 9/11/2002

-

APPLIES TO


 * Microsoft Excel 98 for Macintosh

-



This article was previously published under Q178736



SYMPTOMS
When you run a macro to display the Microsoft Excel 4.0 menu bar, the menu bar does not appear, and no error message is displayed.



CAUSE
This problem occurs when you use the constant xlworkbook to display the Microsoft Excel 4.0 menu bar. This menu bar is no longer available in Microsoft Excel 98 Macintosh Edition.



STATUS
This behavior is by design of Microsoft Excel 98 Macintosh Edition.



MORE INFORMATION
In Excel 98, menu bars and toolbars are referred to as the same programmable object type (command bar). You can use Visual Basic for Applications to manipulate the built-in command bars in Excel 98. Although command bars are recommended over menu bars, the menu bars object is used for backward compatibility with earlier versions of Microsoft Excel.

For additional information about using CommandBars, please see the following article in the Microsoft Knowledge Base:

166755 XL97: WE1183: "Customizing Menu Bars, Menus, and Menu Items"

Additional query words: XL98

Keywords: kbprb KB178736

-

[mailto:TECHNET@MICROSOFT.COM Send feedback to Microsoft]

© Microsoft Corporation. All rights reserved.