Partager via


WorkbookClass.ProtectSharing Method

Namespace:  Microsoft.Office.Interop.Excel
Assembly:  Microsoft.Office.Interop.Excel (in Microsoft.Office.Interop.Excel.dll)

Syntax

'Declaration
Public Overridable Sub ProtectSharing ( _
    Filename As Object, _
    Password As Object, _
    WriteResPassword As Object, _
    ReadOnlyRecommended As Object, _
    CreateBackup As Object, _
    SharingPassword As Object _
)
'Usage
Dim instance As WorkbookClass
Dim Filename As Object
Dim Password As Object
Dim WriteResPassword As Object
Dim ReadOnlyRecommended As Object
Dim CreateBackup As Object
Dim SharingPassword As Object

instance.ProtectSharing(Filename, Password, _
    WriteResPassword, ReadOnlyRecommended, _
    CreateBackup, SharingPassword)
public virtual void ProtectSharing(
    Object Filename,
    Object Password,
    Object WriteResPassword,
    Object ReadOnlyRecommended,
    Object CreateBackup,
    Object SharingPassword
)

Parameters

Implements

_Workbook.ProtectSharing(Object, Object, Object, Object, Object, Object)

See Also

Reference

WorkbookClass Class

WorkbookClass Members

Microsoft.Office.Interop.Excel Namespace