Protection Property
Applies To
VBProject object.
Description
Returns a value indicating the state of protection of a project. Read-only.
Return Values
The Protection property return values are:
| Constant | Description | 
|  | 
| vbext_pp_locked | The specified project is locked. | 
| vbext_pp_none | The specified project isn't protected. | 
See Also
Mode property, Saved property.
Example
The following example uses the Protection property to return a value indicating whether or not a project is protected. The value returned is a number that corresponds to a predefined constant representing the project's status.
Debug.Print Application.VBE.ActiveVBProject.Protection