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.

Visual Basic for Applications
ActiveWorkbook.UnprotectSharing
Make a backup of shared workbook? Remove protection from shared workbook? Save a protected shared workbook? unprotect unprotect sharing Unprotect Sharing Method UnprotectSharing UnprotectSharing Method

See also: