XL98: Closing Workbook with VBA Appears to Stop the Macro

Last reviewed: February 3, 1998
Article ID: Q179119
The information in this article applies to:
  • Microsoft Excel 98 Macintosh Edition

SYMPTOMS

If you run a Visual Basic for Applications macro that closes a workbook in Microsoft Excel 98 Macintosh Edition, a dialog box that contains only a single (OK) button may appear instead of a dialog box with two (OK and Cancel) buttons. When you click OK, Microsoft Excel 98 Macintosh Edition stops responding (hangs).

CAUSE

This problem occurs if the Save As dialog box is still displayed in Microsoft Excel 98 Macintosh Edition when the macro ends. Until this dialog box is dismissed, the program does not respond. Note that when this problem occurs, the notification manager does not indicate a problem.

WORKAROUND

To work around this problem, switch to Microsoft Excel 98 Macintosh Edition and dismiss the Save As dialog box. After you do this, the program behaves normally, and your macro runs.

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.


Additional query words: XL98 hang halt interrupt
Version : MACINTOSH:98
Platform : MACINTOSH
Hardware : MAC
Issue type : kbbug
Solution Type : kbwontfix kbworkaround


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 3, 1998
© 1998 Microsoft Corporation. All rights reserved. Terms of Use.