Run-time error <number>:

This error is user-defined, and has the following cause and solution:

  • An error was generated that doesn't correspond to a Visual Basic error. Handle the error as indicated in the documentation for the object or object library that generated the error.

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.