ExcelScript.WorkbookProtection interface
Represents the protection of a workbook object.
Methods
get |
Specifies if the workbook is protected. |
protect(password) | Protects a workbook. Fails if the workbook has been protected. |
unprotect(password) | Unprotects a workbook. |
Method Details
getProtected()
Specifies if the workbook is protected.
getProtected(): boolean;
Returns
boolean
protect(password)
Protects a workbook. Fails if the workbook has been protected.
protect(password?: string): void;
Parameters
- password
-
string
Workbook protection password.
Returns
void
unprotect(password)
Unprotects a workbook.
unprotect(password?: string): void;
Parameters
- password
-
string
Workbook protection password.
Returns
void
Collaborate with us on GitHub
The source for this content can be found on GitHub, where you can also create and review issues and pull requests. For more information, see our contributor guide.
Office Scripts
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for