protect method

protect

Protects or unprotects this VBA project.

def protect(self, islocked_for_viewing, password):
    ...
ParameterTypeDescription
islocked_for_viewingboolindicates whether locks project for viewing.
passwordstrIf the value is null, unprotects this VBA project, otherwise projects the this VBA project.

Remarks

If islockedForViewing is true, the password could not be null.

See Also