Incorrect DLL version

Each version of Visual Basic works only with its corresponding dynamic-link library (DLL) (Windows) or code resource (Macintosh). This error has the following cause and solution:

  • Your version of the Visual Basic dynamic-link library or code resource doesn't match the version expected by this host application. The program is attempting to call routines in a DLL or code resource, but the version of the library or resource is inconsistent with either Visual Basic or the host application.

    Obtain the correct version of the library or resource, and make sure earlier versions don't precede the proper one on your path.

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.