Spread WinForms 15
FarPoint.Excel Assembly / FarPoint.Excel Namespace / IProtectionSupport Interface / ExcelSetWorkbookProtection Method
The workbook password.
The revisions password.
if set to true [lock structure].
if set to true [lock windows].
if set to true [lock revision].


In This Topic
ExcelSetWorkbookProtection Method
In This Topic
Excels the set workbook protection.
Syntax
'Declaration
 
Function ExcelSetWorkbookProtection( _
   ByVal workbookPassword() As Byte, _
   ByVal revisionsPassword() As Byte, _
   ByVal lockStructure As Boolean, _
   ByVal lockWindows As Boolean, _
   ByVal lockRevision As Boolean _
) As Boolean
 
'Usage
 
Dim instance As IProtectionSupport
Dim workbookPassword() As Byte
Dim revisionsPassword() As Byte
Dim lockStructure As Boolean
Dim lockWindows As Boolean
Dim lockRevision As Boolean
Dim value As Boolean
 
value = instance.ExcelSetWorkbookProtection(workbookPassword, revisionsPassword, lockStructure, lockWindows, lockRevision)

Parameters

workbookPassword
The workbook password.
revisionsPassword
The revisions password.
lockStructure
if set to true [lock structure].
lockWindows
if set to true [lock windows].
lockRevision
if set to true [lock revision].
See Also