Microsoft KB Archive/223317

= OFF98: Type 2 Error Occurs When Showing UserForms =

Article ID: 223317

Article Last Modified on 10/2/2002

-

APPLIES TO


 * Microsoft Office 98 for Macintosh

-



This article was previously published under Q223317





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

The application " " has unexpectedly quit, because an error of type 2 occurred.

You should save your work in other open applications and restart the computer.

where  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 that this is a problem in the Microsoft products that are listed at the beginning of this article.

Additional query words: OFF98

Keywords: kbbug kbnofix kbprogramming KB223317

-

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

© Microsoft Corporation. All rights reserved.