ExcelSetWorkbookProtection Method
In This Topic
Excels the set workbook protection.
Syntax
'Declaration
Function ExcelSetWorkbookProtection( _
ByVal () As Byte, _
ByVal () As Byte, _
ByVal As Boolean, _
ByVal As Boolean, _
ByVal 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)
bool ExcelSetWorkbookProtection(
byte[] ,
byte[] ,
bool ,
bool ,
bool
)
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