Workbook.UnprotectSharing method (Excel)

Turns off protection for sharing and saves the workbook.

Syntax

expression.UnprotectSharing (SharingPassword)

expression A variable that represents a Workbook object.

Parameters

Name Required/Optional Data type Description
SharingPassword Optional Variant The workbook password.

Example

This example turns off protection for sharing and saves the active workbook.

ActiveWorkbook.UnprotectSharing

Support and feedback

Have questions or feedback about Office VBA or this documentation? Please see Office VBA support and feedback for guidance about the ways you can receive support and provide feedback.