The form class contained in the specified file is not supported in Visual Basic for Applications; the file can't be loaded.

Visual Basic for Applications only supports UserForm form objects. This error has the following cause and solution:

  • You are trying to load a form from an earlier version of Visual Basic or a form from a current standalone version of Visual Basic. It's probably easiest to redesign the form using the UserForm tools within Visual Basic for Applications. If you can save the form in ASCII format, you may be able to modify the form and import it. However, you must completely understand the formats and limitations of the various form packages.

For additional information, select the item in question and press F1 (in Windows) or HELP (on the Macintosh).

Support and feedback

Have questions or feedback about Office VBA or this documentation? Please see Office VBA support and feedback for guidance about the ways you can receive support and provide feedback.