Requested type library or wizard is not a VBA project

Not all elements available in Visual Basic are able to be both read from and written to. This error has the following causes and solutions:

  • You tried to write to an Addin or a type library from within a Visual Basic project. You can't directly write to a prepackaged Addin or a type library as part of a Visual Basic project.

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.