Name
worksheet.Protect([Password], [DrawingObjects], [Contents], [Scenarios], [UserInterfaceOnly], [AllowFormattingCells], [AllowFormattingColumns], [AllowFormattingRows], [ AllowInsertingColumns], [ AllowInsertingRows], [AllowInsertingHyperlinks], [ AllowDeletingColumns], [ AllowDeletingRows], [AllowSorting], [AllowFiltering], [AllowUsingPivotTables])
Synopsis
Prevents changes to a worksheet.
|
Argument |
Settings |
|---|---|
|
|
A case-sensitive password string. |
|
|
True prevents changes to shapes. |
|
|
True prevents changes to the contents of cells. |
|
|
True prevents changes to scenarios. |
|
|
True prevents changes to the user interface, but not macros. |
|
|
True allows formatting changes to cells. |
|
|
True allows formatting changes to columns. |
|
|
True allows formatting changes to rows. |
|
|
True allows inserting of columns. |
|
|
True allows inserting of rows. |
|
|
True allows inserting of hyperlinks. |
|
|
True allows deleting of columns. |
|
|
True allows deleting of rows. |
|
|
True allows sorting on the worksheet. |
|
|
True allows filtering on the worksheet. |
|
|
True allows pivot tables on the worksheet. |
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access