Article ID: 813969 - View products that this article applies to.
For a Microsoft Excel 2002 version of this article, see 282033
When you run code that uses the Microsoft Visual Basic for Applications Extensibility 5.3 Library, you may receive the following error message:
Run-time error '1004': Programmatic access to the Visual Basic Project is not trusted
Microsoft Office Excel 2003 and Microsoft Office Excel 2007 contain a security feature that allows you to choose whether programmatic access to the Visual Basic project is trusted.
The default setting is to not trust programmatic access to the Visual Basic project.
To allow programmatic access to the Visual Basic project, follow these steps, as appropriate for the version of Excel that you are running.
Article ID: 813969 - Last Review: January 13, 2007 - Revision: 4.2