protect
protect(islockedForViewing, password)
Protects or unprotects this VBA project.
If islockedForViewing is true, the password could not be null.
| Parameter | Type | Description |
|---|---|---|
| islockedForViewing | boolean | indicates whether locks project for viewing. |
| password | String | If the value is null, unprotects this VBA project, otherwise protect this VBA project. |