Invalid data format
The data read from a file wasn't in the expected format. This error has the following causes and solutions:
A project file or object library file is either corrupted or in a format that can't be understood.
Get a new version of the project file or object library file.
You may have attempted to load an .exe file into a module.
Load the source code instead.
You may have used the References dialog box and Object Browser to add a reference to a file that isn't a valid object library or contains a Basic project in a format not supported by the host application. For example, on the Windows platform, Microsoft Excel can't understand .bas or .frm files, or Microsoft Project files containing Basic code.
Load the questionable file into the application in which it was created, and then save it in a compatible format. For example, object library source code can be processed through MkTypLib; and QuickBasic, and Visual Basic code can be saved in text format, and so on.
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.