Skip to content

Lock VBA Project (Simple VBA Protection)

The Lock VBA Project option provides a simple way to prevent end-users from accessing your VBA project. This feature marks the VBA project as locked, making it impossible to view, access, or modify. It does not use password protection.

If the end user tries to access a locked VBA project, the following error message is displayed (Project Locked, Project is unviewable):

Excel error message Project Locked, Project is unviewable for a locked VBA project

If you prefer to keep a password, consider using the Prevent access to VBA editor option instead.

Note that macros remain functional.

This option is compatible with our VBA compiler, which offers a higher level of security for your VBA code.