Workbook.UnprotectSharing method (Excel)
Turns off protection for sharing and saves the workbook.
expression.UnprotectSharing (SharingPassword)
expression A variable that represents a Workbook object.
Name | Required/Optional | Data type | Description |
---|---|---|---|
SharingPassword | Optional | Variant | The workbook password. |
This example turns off protection for sharing and saves the active workbook.
VB
ActiveWorkbook.UnprotectSharing
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.