UnprotectSharing Method
TOC
Collapse the table of content
Expand the table of content

Workbook.UnprotectSharing Method (Excel)

Office 2013 and later
GitHub-Mark-64px

Contribute to this content

Use GitHub to suggest and submit changes. See our guidelines for contributing to VBA documentation.

Turns off protection for sharing and saves the workbook.

expression .UnprotectSharing(SharingPassword)

expression A variable that represents a Workbook object.

Parameters

Name

Required/Optional

Data Type

Description

SharingPassword

Optional

Variant

The workbook password.

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

ActiveWorkbook.UnprotectSharing
Show:
© 2016 Microsoft