Notice: This website is an unofficial Microsoft Knowledge Base (hereinafter KB) archive and is intended to provide a reliable access to deleted content from Microsoft KB. All KB articles are owned by Microsoft Corporation. Read full disclaimer for more details.

ACC2000: Can't Import Modules from Protected VBA Project


View products that this article applies to.

This article was previously published under Q205085
Moderate: Requires basic macro, coding, and interoperability skills.

This article applies to a Microsoft Access database (.mdb) and to a Microsoft Access project (.adp).

↑ Back to the top


Summary

If you export a module to or import a module from another Microsoft Access database or project, or if you drag a module from one instance of the Visual Basic Editor to another instance of the Editor, you may receive the following error message:
This VBA project has been protected with a password. You must supply the password in the Visual Basic Environment before you can perform this operation.

↑ Back to the top


More information

There is no way to supply the password to the protected project.

In order to complete the operation successfully, open the database or project that contains the protected Visual Basic for Applications project and export the module to the target database or project. If both the target and source databases are under Visual Basic for Applications password protection, remove the password from the Visual Basic for Applications project that you are importing from or exporting to.

↑ Back to the top


References

For more information about password protecting Visual Basic for Applications projects, click Microsoft Access Help on the Help menu, type protect VBE in the Office Assistant or the Answer Wizard, and then click Search to view the topics returned.

↑ Back to the top


Keywords: KB205085, kbinfo

↑ Back to the top

Article Info
Article ID : 205085
Revision : 3
Created on : 1/26/2005
Published on : 1/26/2005
Exists online : False
Views : 307