VbaProjectProtect Method

Protects or unprotects this VBA project.

Namespace:  Aspose.Cells.Vba
Assembly:  Aspose.Cells (in Aspose.Cells.dll) Version: 21.6.0.0 (21.6)
Syntax
public void Protect(
	bool islockedForViewing,
	string password
)

Parameters

islockedForViewing
Type: SystemBoolean
indicates whether locks project for viewing.
password
Type: SystemString
If 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