XL2002: Error Message: Run-Time Error '1004': Programmatic Access to the Visual Basic Project Is Not Trusted (282033)



The information in this article applies to:

  • Microsoft Excel 2002

This article was previously published under Q282033

SYMPTOMS

When you run code that uses the Microsoft 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

CAUSE

Microsoft Excel 2002 contains a new security feature that allows you to choose whether or not programmatic access to the Visual Basic project should be trusted.

The default setting is to not trust programmatic access to the Visual Basic project.

RESOLUTION

To allow programmatic access to the Visual Basic project, follow these steps:
  1. On the Tools menu, point to Macro and then click Security.
  2. In the Security dialog box, click the Trusted Sources tab.
  3. Click to select the Trust access to Visual Basic Project check box.

Modification Type:MinorLast Reviewed:9/12/2006
Keywords:kberrmsg kbprb KB282033