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. |
Get Programming Excel with VBA and .NET now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.