Filename or class name not found during Automation operation (Error 432)

The GetObject function requires either a valid file name with a path specification, or the name of a class that is registered with the system. This error has the following cause and solution:

  • The name specified for file name or class in a call to the GetObject function could not be found. Check the names and try again. Make sure the name used for the class parameter matches that registered with the system.

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.