OFF98: Type 2 Error Occurs When Showing UserForms

ID: Q223317


The information in this article applies to:
  • Microsoft Office 98 Macintosh Edition


SYMPTOMS

When you show a UserForm, you may receive the following error message

The application "program name" has unexpectedly quit, because an error of type 2 occurred.
You should save your work in other open applications and restart the computer.
where program name is the Microsoft Office program you are currently using. When you click OK, the program shuts down.

NOTE: Microsoft Excel may expectedly quit without displaying any error messages.


CAUSE

This problem occurs when one of the following conditions is true:

  • You programmatically set the Autosize property to True for a UserForm control from the Toolbox.

    -or-

  • You programmatically set the Autosize property to True for a bitmap image that the LoadPicture method is loading onto the UserForm.


STATUS

Microsoft has confirmed this to be a problem in the Microsoft products listed at the beginning of this article.

Additional query words: OFF98

Keywords :
Version : MACINTOSH:98
Platform : MACINTOSH
Issue type : kbbug


Last Reviewed: November 2, 1999
© 2000 Microsoft Corporation. All rights reserved. Terms of Use.