Unprotect Method (IWorkbook)
Unprotects the workbook which is protected by password.
'Declaration
Function Unprotect( _
Optional ByVal As String _
) As Boolean
'Usage
Dim instance As IWorkbook
Dim password As String
Dim value As Boolean
value = instance.Unprotect(password)
Parameters
- password
- A string value that denotes the case-sensitive password to use to unprotect workbook.
Return Value
true
if the workbook is unprotected successful, false
otherwise.