XL97: Pressing ALT+F11 May Not Start the Visual Basic Editor

Last reviewed: February 12, 1998
Article ID: Q165258
The information in this article applies to:
  • Microsoft Excel 97 for Windows

SYMPTOMS

In Microsoft Excel 97, when you press ALT+F11, you cannot start or switch to the Visual Basic Editor.

CAUSE

This problem occurs if an ActiveX control on a worksheet has the focus when you press ALT+F11.

RESOLUTION

To resolve this problem, use either of the following workarounds.

Method 1: Use the Macro Command

To start or switch to the Visual Basic Editor when an ActiveX control has the focus, point to Macro on the Tools menu, and then click Visual Basic Editor.

NOTE: When you point to Macro on the Tools menu, the Alt+F11 key combination appears next to the Visual Basic Editor command. However, this key combination does not work when an ActiveX control has the focus.

Method 2: Shift the Focus Away from the ActiveX Control

You can also click a cell on the worksheet so that the ActiveX control no longer has the focus. Then, press ALT+F11 to start or switch to the Visual Basic Editor.

STATUS

Microsoft has confirmed this to be a problem in the Microsoft products listed at the beginning of this article. We are researching this problem and will post new information here in the Microsoft Knowledge Base as it becomes available.

MORE INFORMATION

In Microsoft Excel 97 you can add ActiveX controls to worksheets for making custom applications. The ActiveX controls that you can add to a worksheet are displayed on the Control Toolbox toolbar. To display the Control Toolbox toolbar, point to Toolbars on the View menu, and then click Control Toolbox.

REFERENCES

For more information about ActiveX controls, click the Index tab in Microsoft Visual Basic Help, type the following text

   activex

and then double-click the selected text to go to the "Understanding Automation" topic.


Additional query words: XL97
Keywords : xlui xlvbainfo kbtool
Version : WINDOWS:97
Platform : WINDOWS


THE INFORMATION PROVIDED IN THE MICROSOFT KNOWLEDGE BASE IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND. MICROSOFT DISCLAIMS ALL WARRANTIES, EITHER EXPRESS OR IMPLIED, INCLUDING THE WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT SHALL MICROSOFT CORPORATION OR ITS SUPPLIERS BE LIABLE FOR ANY DAMAGES WHATSOEVER INCLUDING DIRECT, INDIRECT, INCIDENTAL, CONSEQUENTIAL, LOSS OF BUSINESS PROFITS OR SPECIAL DAMAGES, EVEN IF MICROSOFT CORPORATION OR ITS SUPPLIERS HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. SOME STATES DO NOT ALLOW THE EXCLUSION OR LIMITATION OF LIABILITY FOR CONSEQUENTIAL OR INCIDENTAL DAMAGES SO THE FOREGOING LIMITATION MAY NOT APPLY.

Last reviewed: February 12, 1998
© 1998 Microsoft Corporation. All rights reserved. Terms of Use.