ActiveSheet.Protect("", .t., .t., .t., .f., .f., .f., .f., .f., .f., .f., .f., .f., .f., .t., .f.)
Here the complete syntax from HELPexpression.Protect(Password, DrawingObjects, Contents, Scenarios, UserInterfaceOnly, AllowFormattingCells, AllowFormattingColumns, AllowFormattingRows, AllowInsertingColumns, AllowInsertingRows, AllowInsertingHyperlinks, AllowDeletingColumns, AllowDeletingRows, AllowSorting, AllowFiltering, AllowUsingPivotTables) DrawingObjects Optional Variant. True to protect shapes. The default value is False. Contents Optional Variant. True to protect contents. For a chart, this protects the entire chart. For a worksheet, this protects the locked cells. The default value is True. Scenarios Optional Variant. True to protect scenarios. This argument is valid only for worksheets. The default value is True. UserInterfaceOnly Optional Variant. True to protect the user interface, but not macros. If this argument is omitted, protection applies both to macros and to the user interface. AllowFormattingCells Optional Variant. True allows the user to format any cell on a protected worksheet. The default value is False. AllowFormattingColumns Optional Variant. True allows the user to format any column on a protected worksheet. The default value is False. AllowFormattingRows Optional Variant. True allows the user to format any row on a protected. The default value is False. AllowInsertingColumns Optional Variant. True allows the user to insert columns on the protected worksheet. The default value is False. AllowInsertingRows Optional Variant. True allows the user to insert rows on the protected worksheet. The default value is False. AllowInsertingHyperlinks Optional Variant. True allows the user to insert hyperlinks on the worksheet. The default value is False. AllowDeletingColumns Optional Variant. True allows the user to delete columns on the protected worksheet, where every cell in the column to be deleted is unlocked. The default value is False. AllowDeletingRows Optional Variant. True allows the user to delete rows on the protected worksheet, where every cell in the row to be deleted is unlocked. The default value is False. AllowSorting Optional Variant. True allows the user to sort on the protected worksheet. Every cell in the sort range must be unlocked or unprotected. The default value is False. AllowFiltering Optional Variant. True allows the user to set filters on the protected worksheet. Users can change filter criteria but can not enable or disable an auto filter. Users can set filters on an existing auto filter. The default value is False. AllowUsingPivotTables Optional Variant. True allows the user to use pivot table reports on the protected worksheet. The default value is False.