This documentation is archived and is not being maintained.

Workbook.UnprotectSharing Method

Office 2007
Turns off protection for sharing and saves the workbook.

Syntax

expression.UnprotectSharing(SharingPassword)

expression   A variable that represents a Workbook object.

Parameters

NameRequired/OptionalData TypeDescription
SharingPasswordOptionalVariantThe workbook password.

Example

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

Visual Basic for Applications
ActiveWorkbook.UnprotectSharing



Show: