Table of Contents

TProtection.SetWorkbookProtection Method

Protects the workbook. On Excel goto Protect->Workbook to check it.

Syntax

Namespace: FlexCel.Core

public void SetWorkbookProtection(String workbookPassword, TWorkbookProtectionOptions workbookProtectionOptions)

Parameters

<-> Parameter Type Description
workbookPassword String Password to protect the file. You can set it to null to clear it.
workbookProtectionOptions TWorkbookProtection​Options The options to protect.

See also