У меня сработало в оригинальном варианте. Наверное, зависит от версии офис. У меня Office 365 (Сейчас это 2013)
Мне надо было защищать по листам, переделал:
X++:
void ProtectWorkSheet(int _worksheetid = 1)
{
com activeSheet;
;
activeSheet = this.getWorkSheet(_workSheetID);
activeSheet.protect(
"12345", //password
true, //DrawingObjects
true, //Contents
true, //Scenarios
true, //UserInterfaceOnly
true, //AllowFormattingCells
true, //AllowFormattingColumns
true, //AllowFormattingRows
true, //AllowInsertingColumns
true, //AllowInsertingRows
true, //AllowInsertingHyperlinks
true, //AllowDeletingColumns
true, //AllowDeletingRows
true, //AllowSorting
true, //AllowFiltering
true //AllowUsingPivotTables
);
activeSheet.enableSelection(-4142); //xlNoSelection
}