public void LockWindows() { CreateProtectionFieldIfNotPresent(); workbook.workbookProtection.lockWindows = (true); }