MBS( "XL.Sheet.SetProtectEx"; /* Protects/unprotects the sheet with password and enhanced parameters below. */$bookRef; /* The reference to the workbook. Please use XL.LoadBook to load a file.e.g. $ref */
$sheetIndex; /* The index of the sheet. This number ranges from 0 to XL.Book.SheetCount-1.e.g. 0 */
$protect; /* Whether to protect.
Pass 1 to enable protection and 0 to disable.e.g. 1 */
$Password; /* The password to use. */
$ProtectEx) /* The new protection setting.
This can be a list of several options or a number.e.g. "default" */
Less