حماية وإلغاء حماية ورقة العمل
حماية أوراق العمل
عندما تكون ورقة العمل محمية ، يتم تقييد الإجراءات التي يمكن للمستخدم اتخاذها. على سبيل المثال ، لا يمكنهم إدخال البيانات أو إدراج أو حذف صفوف أو أعمدة وما إلى ذلك. خيارات الحماية العامة في Microsoft Excel هي:
- محتويات
- أشياء
- سيناريوهات
لا تخفي أوراق العمل المحمية البيانات الحساسة أو تحميها ، لذا فهي تختلف عن تشفير الملفات. بشكل عام ، تعد حماية ورقة العمل مناسبة لأغراض العرض. يمنع المستخدم النهائي من تعديل البيانات والمحتوى والتنسيق في ورقة العمل.
إضافة أو إزالة الحماية
Aspose.Cells يوفر فصل دراسي ،دفتر العمل ، يمثل ملف Excel Microsoft. تحتوي فئة المصنف على مجموعة أوراق العمل التي تسمح بالوصول إلى كل ورقة عمل في ملف Excel. يتم تمثيل ورقة العمل بواسطةورقة عمل صف دراسي.
توفر فئة ورقة العمل ملفيحمي الطريقة المستخدمة لتطبيق الحماية على ورقة العمل. تقبل طريقة Protect المعلمات التالية:
- نوع الحماية ، نوع الحماية المراد تطبيقها على ورقة العمل. يتم تطبيق نوع الحماية بمساعدةنوع الحماية تعداد.
- كلمة المرور الجديدة ، كلمة المرور الجديدة المستخدمة لحماية ورقة العمل.
- كلمة المرور القديمة ، كلمة المرور القديمة ، إذا كانت ورقة العمل محمية بكلمة مرور بالفعل. إذا لم تكن ورقة العمل محمية بالفعل ، فقم فقط بتمرير قيمة خالية.
يحتوي تعداد ProtectionType على أنواع الحماية المحددة مسبقًا التالية:
أنواع الحماية | وصف |
---|---|
الكل | لا يمكن للمستخدم تعديل أي شيء في ورقة العمل هذه |
محتويات | لا يمكن للمستخدم إدخال البيانات في ورقة العمل هذه |
أشياء | لا يمكن للمستخدم تعديل الكائنات الرسومية |
السيناريوهات | لا يمكن للمستخدم تعديل السيناريوهات المحفوظة |
بنية | لا يمكن للمستخدم تعديل الهيكل المحفوظ |
شبابيك | لا يمكن للمستخدم تعديل النوافذ المحفوظة |
لا أحد | لا حماية |
يوضح المثال أدناه كيفية حماية ورقة العمل بكلمة مرور.
// For complete examples and data files, please go to https://github.com/aspose-cells/Aspose.Cells-for-Java | |
// The path to the documents directory. | |
String dataDir = Utils.getSharedDataDir(ProtectingWorksheet.class) + "worksheets/"; | |
// Instantiating a Excel object by excel file path | |
Workbook excel = new Workbook(dataDir + "book1.xls"); | |
// Accessing the first worksheet in the Excel file | |
WorksheetCollection worksheets = excel.getWorksheets(); | |
Worksheet worksheet = worksheets.get(0); | |
Protection protection = worksheet.getProtection(); | |
// The following 3 methods are only for Excel 2000 and earlier formats | |
protection.setAllowEditingContent(false); | |
protection.setAllowEditingObject(false); | |
protection.setAllowEditingScenario(false); | |
// Protects the first worksheet with a password "1234" | |
protection.setPassword("1234"); | |
// Saving the modified Excel file in default format | |
excel.save(dataDir + "ProtectingWorksheet_out.xls"); | |
// Print Message | |
System.out.println("Sheet protected successfully."); |
بعد استخدام الكود أعلاه لحماية ورقة العمل ، تحقق من الحماية على ورقة العمل بفتحها. بمجرد فتح الملف ومحاولة إضافة بعض البيانات إلى ورقة العمل ، يتم عرض مربع الحوار التالي:
مربع حوار يحذر من أن المستخدم لا يمكنه تعديل ورقة العمل
للعمل على ورقة العمل ، قم بإلغاء حماية ورقة العمل عن طريق تحديد ملفحماية ، ومن بعدورقة غير محمية منأدوات عنصر القائمة كما هو موضح أدناه.
تحديد عنصر قائمة Unprotect Sheet
يفتح مربع حوار للمطالبة بكلمة مرور.
إدخال كلمة مرور لإلغاء حماية ورقة العمل
حماية قليلة Cells
قد تكون هناك سيناريوهات معينة تحتاج فيها إلى قفل بضع خلايا فقط في ورقة العمل. إذا كنت تريد قفل بعض الخلايا المحددة في ورقة العمل ، فيجب عليك إلغاء قفل جميع الخلايا الأخرى في ورقة العمل. تمت تهيئة جميع الخلايا الموجودة في ورقة العمل بالفعل للقفل ، يمكنك التحقق من فتح أي ملف Excel في MS Excel والنقر فوق الزرتنسيق | Cells … ليعرضشكل Cells مربع الحوار ثم انقر فوق علامة التبويب “الحماية” وانظر إلى خانة الاختيار “مؤمن” محددة بشكل افتراضي.
فيما يلي طريقتان لتنفيذ المهمة.
طريقة 1:
توضح النقاط التالية كيفية قفل بعض الخلايا باستخدام MS Excel. تنطبق هذه الطريقة على Microsoft Office Excel 97 و 2000 و 2002 و 2003 والإصدارات الأحدث.
- حدد ورقة العمل بأكملها بالنقر فوق الزر تحديد الكل (المستطيل الرمادي أعلى رقم الصف للصف 1 مباشرة وعلى يسار حرف العمود A).
- انقر فوق Cells في قائمة “تنسيق” ، ثم انقر فوق علامة التبويب “حماية” ، ثم قم بإلغاء تحديد خانة الاختيار “مؤمن”.
هذا يفتح جميع الخلايا في ورقة العمل
- حدد فقط الخلايا التي تريد قفلها وكرر الخطوة 2 ، ولكن هذه المرة حدد خانة الاختيار مؤمن.
- على الأدوات القائمة ، حددحماية ، انقرورقة حماية ، ثم انقر فوقنعم.
الطريقة 2:
في هذه الطريقة ، نستخدم Aspose.Cells API فقط للقيام بالمهمة.
يوضح المثال التالي كيفية حماية بعض الخلايا في ورقة العمل. يقوم بإلغاء تأمين جميع الخلايا الموجودة في ورقة العمل أولاً ثم قفل 3 خلايا (A1 ، B1 ، C1) فيها. أخيرًا ، يحمي ورقة العمل. يحتوي الصف / العمود على نمط API يحتوي أيضًا على مجموعة Locked method. يمكنك استخدام هذه الطريقة لقفل أو إلغاء قفل الصف / العمود.
// For complete examples and data files, please go to https://github.com/aspose-cells/Aspose.Cells-for-Java | |
// The path to the documents directory. | |
String dataDir = Utils.getSharedDataDir(ProtectingSpecificCellsinaWorksheet.class) + "worksheets/"; | |
// Create a new workbook. | |
Workbook wb = new Workbook(); | |
// Create a worksheet object and obtain the first sheet. | |
Worksheet sheet = wb.getWorksheets().get(0); | |
// Define the style object. | |
Style style; | |
// Define the styleflag object. | |
StyleFlag flag; | |
flag = new StyleFlag(); | |
flag.setLocked(true); | |
// Loop through all the columns in the worksheet and unlock them. | |
for (int i = 0; i <= 255; i++) { | |
style = sheet.getCells().getColumns().get(i).getStyle(); | |
style.setLocked(false); | |
sheet.getCells().getColumns().get(i).applyStyle(style, flag); | |
} | |
// Lock the three cells...i.e. A1, B1, C1. | |
style = sheet.getCells().get("A1").getStyle(); | |
style.setLocked(true); | |
sheet.getCells().get("A1").setStyle(style); | |
style = sheet.getCells().get("B1").getStyle(); | |
style.setLocked(true); | |
sheet.getCells().get("B1").setStyle(style); | |
style = sheet.getCells().get("C1").getStyle(); | |
style.setLocked(true); | |
sheet.getCells().get("C1").setStyle(style); | |
// Save the excel file. | |
wb.save(dataDir + "PSpecificCellsinaWorksheet_out.xls", FileFormatType.EXCEL_97_TO_2003); | |
// Print Message | |
System.out.println("Cells protected successfully."); |
حماية صف في ورقة العمل
Aspose.Cells يسمح لك بقفل أي صف في ورقة العمل بسهولة. هنا ، يمكننا الاستفادة منتطبيق نمط () طريقةصف فئة لتطبيق النمط على صف معين في ورقة العمل. تأخذ هذه الطريقة حجتين: أأسلوب كائن والنمط الهيكل الذي يحتوي على جميع الأعضاء المتعلقين بالتنسيق المطبق.
يوضح المثال التالي كيفية حماية صف في ورقة العمل. يقوم بإلغاء تأمين جميع الخلايا الموجودة في ورقة العمل أولاً ثم يقفل الصف الأول فيها. أخيرًا ، يحمي ورقة العمل. يحتوي الصف / العمود على النمط API الذي يحتوي أيضًا على طريقة setCellLocked. يمكنك قفل أو إلغاء قفل الصف / العمود باستخدام بنية StyleFlag.
// For complete examples and data files, please go to https://github.com/aspose-cells/Aspose.Cells-for-Java | |
// The path to the documents directory. | |
String dataDir = Utils.getSharedDataDir(ProtectRowWorksheet.class) + "worksheets/"; | |
// Create a new workbook. | |
Workbook wb = new Workbook(); | |
// Create a worksheet object and obtain the first sheet. | |
Worksheet sheet = wb.getWorksheets().get(0); | |
// Define the style object. | |
Style style; | |
// Define the styleflag object. | |
StyleFlag flag; | |
// Loop through all the columns in the worksheet and unlock them. | |
for (int i = 0; i <= 255; i++) { | |
style = sheet.getCells().getRows().get(i).getStyle(); | |
style.setLocked(false); | |
flag = new StyleFlag(); | |
flag.setLocked(true); | |
sheet.getCells().getRows().get(i).applyStyle(style, flag); | |
} | |
// Get the first Roww style. | |
style = sheet.getCells().getRows().get(1).getStyle(); | |
// Lock it. | |
style.setLocked(true); | |
// Instantiate the flag. | |
flag = new StyleFlag(); | |
// Set the lock setting. | |
flag.setLocked(true); | |
// Apply the style to the first row. | |
sheet.getCells().getRows().get(1).applyStyle(style, flag); | |
sheet.protect(ProtectionType.ALL); | |
// Save the excel file. | |
wb.save(dataDir + "ProtectRowWorksheet_out.xls", FileFormatType.EXCEL_97_TO_2003); | |
// Print Message | |
System.out.println("Row protected successfully."); |
حماية عمود في ورقة العمل
يسمح لك Aspose.Cells بقفل أي عمود في ورقة العمل بسهولة. هنا ، يمكننا الاستفادة منتطبيق نمط () طريقةعمود فئة لتطبيق النمط على عمود معين في ورقة العمل. تأخذ هذه الطريقة حجتين: أأسلوب كائن والنمط الهيكل الذي يحتوي على جميع الأعضاء المتعلقين بالتنسيق المطبق.
يوضح المثال التالي كيفية حماية عمود في ورقة العمل. يقوم بإلغاء تأمين جميع الخلايا الموجودة في ورقة العمل أولاً ثم يقوم بتأمين العمود الأول فيها. أخيرًا ، يحمي ورقة العمل. يحتوي الصف / العمود على نمط API يحتوي أيضًا على مجموعة Locked method. يمكنك قفل أو إلغاء قفل الصف / العمود باستخدام بنية StyleFlag.
// For complete examples and data files, please go to https://github.com/aspose-cells/Aspose.Cells-for-Java | |
// The path to the documents directory. | |
String dataDir = Utils.getSharedDataDir(ProtectColumnWorksheet.class) + "worksheets/"; | |
// Create a new workbook. | |
Workbook wb = new Workbook(); | |
// Create a worksheet object and obtain the first sheet. | |
Worksheet sheet = wb.getWorksheets().get(0); | |
// Define the style object. | |
Style style; | |
// Define the styleflag object. | |
StyleFlag flag; | |
// Loop through all the columns in the worksheet and unlock them. | |
for (int i = 0; i <= 255; i++) { | |
style = sheet.getCells().getColumns().get(i).getStyle(); | |
style.setLocked(false); | |
flag = new StyleFlag(); | |
flag.setLocked(true); | |
sheet.getCells().getColumns().get(i).applyStyle(style, flag); | |
} | |
// Get the first column style. | |
style = sheet.getCells().getColumns().get(0).getStyle(); | |
// Lock it. | |
style.setLocked(true); | |
// Instantiate the flag. | |
flag = new StyleFlag(); | |
// Set the lock setting. | |
flag.setLocked(true); | |
// Apply the style to the first column. | |
sheet.getCells().getColumns().get(0).applyStyle(style, flag); | |
sheet.protect(ProtectionType.ALL); | |
// Save the excel file. | |
wb.save(dataDir + "PColumnWorksheet_out.xls", FileFormatType.EXCEL_97_TO_2003); | |
// Print Message | |
System.out.println("Column protected successfully."); |
قم بإلغاء حماية ورقة العمل
حماية أوراق العمل وإعدادات الحماية المتقدمة منذ Excel XP ناقش مناهج مختلفة لحماية أوراق العمل. ماذا لو احتاج المطور إلى إزالة الحماية من ورقة عمل محمية في وقت التشغيل بحيث يمكن إجراء بعض التغييرات على الملف؟ يمكن القيام بذلك بسهولة باستخدام Aspose.Cells.
باستخدام Microsoft إكسل
لإزالة الحماية من ورقة العمل:
منأدوات القائمة ، حددحماية تليهاورقة غير محمية.
تحديد Unprotect Sheet
تتم إزالة الحماية ، ما لم تكن ورقة العمل محمية بكلمة مرور. في هذه الحالة ، سيطالبك مربع حوار بكلمة المرور.
إدخال كلمة مرور لإلغاء حماية ورقة العمل
باستخدام Aspose.Cells
يمكن إلغاء حماية ورقة العمل عن طريق استدعاء ملفورقة عمل صف دراسي'غير محمي طريقة. الغير محمي يمكن استخدام الطريقة بطريقتين ، كما هو موضح أدناه.
عدم حماية ورقة عمل محمية ببساطة
ورقة العمل المحمية ببساطة هي ورقة غير محمية بكلمة مرور. يمكن أن تكون أوراق العمل غير محمية عن طريق استدعاء الأسلوب غير المحمي دون تمرير معلمة.
// For complete examples and data files, please go to https://github.com/aspose-cells/Aspose.Cells-for-Java | |
// The path to the documents directory. | |
String dataDir = Utils.getSharedDataDir(UnprotectingSimplyProtectedWorksheet.class) + "worksheets/"; | |
// Instantiating a Workbook object | |
Workbook workbook = new Workbook(dataDir + "book1.xls"); | |
WorksheetCollection worksheets = workbook.getWorksheets(); | |
Worksheet worksheet = worksheets.get(0); | |
Protection protection = worksheet.getProtection(); | |
// The following 3 methods are only for Excel 2000 and earlier formats | |
protection.setAllowEditingContent(false); | |
protection.setAllowEditingObject(false); | |
protection.setAllowEditingScenario(false); | |
// Unprotecting the worksheet | |
worksheet.unprotect(); | |
// Save the excel file. | |
workbook.save(dataDir + "USPWorksheet_out.xls", FileFormatType.EXCEL_97_TO_2003); | |
// Print Message | |
System.out.println("Worksheet unprotected successfully."); |
إلغاء حماية ورقة عمل محمية بكلمة مرور
ورقة العمل المحمية بكلمة مرور هي ورقة محمية بكلمة مرور. يمكن إلغاء حماية أوراق العمل هذه عن طريق استدعاء إصدار محمّل بشكل زائد من أسلوب Unprotect الذي يأخذ كلمة المرور كمعامل.
// For complete examples and data files, please go to https://github.com/aspose-cells/Aspose.Cells-for-Java | |
// The path to the documents directory. | |
String dataDir = Utils.getSharedDataDir(UnprotectProtectSheet.class) + "worksheets/"; | |
// Instantiating a Workbook object | |
Workbook workbook = new Workbook(dataDir + "book1.xls"); | |
WorksheetCollection worksheets = workbook.getWorksheets(); | |
Worksheet worksheet = worksheets.get(0); | |
// Unprotecting the worksheet | |
worksheet.unprotect("aspose"); | |
// Save the excel file. | |
workbook.save(dataDir + "UnprotectProtectSheet_out.xls", FileFormatType.EXCEL_97_TO_2003); | |
// Print Message | |
System.out.println("Worksheet unprotected successfully."); |
إعدادات الحماية المتقدمة منذ Excel XP
حماية أوراق العمل ناقش موضوع حماية ورقة العمل في Microsoft Excel 97 و 2000. ولكن منذ إصدار Excel 2002 أو XP ، أضاف Microsoft العديد من إعدادات الحماية المتقدمة. تعمل إعدادات الحماية هذه على تقييد المستخدمين أو السماح لهم بما يلي:
- احذف الصفوف أو الأعمدة.
- تحرير المحتويات أو الكائنات أو السيناريوهات.
- تنسيق الخلايا أو الصفوف أو الأعمدة.
- قم بإدراج صفوف أو أعمدة أو ارتباطات تشعبية.
- حدد الخلايا المؤمنة أو غير المؤمنة.
- استخدم الجداول المحورية وغير ذلك الكثير.
يدعم Aspose.Cells كافة إعدادات الحماية المتقدمة التي يوفرها Excel XP والإصدارات الأحدث.
إعدادات الحماية المتقدمة باستخدام Excel XP والإصدارات الأحدث
لعرض إعدادات الحماية المتوفرة في Excel XP:
- منأدوات القائمة ، حددحماية تليهاورقة حماية. يتم عرض مربع حوار.
مربع حوار لإظهار خيارات الحماية في Excel XP
- السماح أو تقييد ميزات أوراق العمل أو تطبيق كلمة مرور.
إعدادات الحماية المتقدمة باستخدام Aspose.Cells
Aspose.Cells يدعم كل إعدادات الحماية المتقدمة.
Aspose.Cells يوفر فصل دراسي ،دفتر العمل ، يمثل ملف Excel Microsoft. تحتوي فئة المصنف على مجموعة WorksheetCollection التي تتيح الوصول إلى كل ورقة عمل في ملف Excel. يتم تمثيل ورقة العمل بواسطةورقة عمل صف دراسي.
توفر فئة ورقة العمل خاصية الحماية المستخدمة لتطبيق إعدادات الحماية المتقدمة هذه. في الواقع ، تعتبر خاصية الحماية موضوعًا منحماية فئة تضم العديد من الخصائص المنطقية لتعطيل القيود أو تمكينها.
// For complete examples and data files, please go to https://github.com/aspose-cells/Aspose.Cells-for-Java | |
// The path to the documents directory. | |
String dataDir = Utils.getSharedDataDir(AdvancedProtectionSettingsUsingAsposeCells.class) + "worksheets/"; | |
// Instantiating a Workbook object by excel file path | |
Workbook excel = new Workbook(dataDir + "book1.xlsx"); | |
WorksheetCollection worksheets = excel.getWorksheets(); | |
Worksheet worksheet = worksheets.get(0); | |
Protection protection = worksheet.getProtection(); | |
// Restricting users to delete columns of the worksheet | |
protection.setAllowDeletingColumn(false); | |
// Restricting users to delete row of the worksheet | |
protection.setAllowDeletingRow(false); | |
// Restricting users to edit contents of the worksheet | |
protection.setAllowEditingContent(false); | |
// Restricting users to edit objects of the worksheet | |
protection.setAllowEditingObject(false); | |
// Restricting users to edit scenarios of the worksheet | |
protection.setAllowEditingScenario(false); | |
// Restricting users to filter | |
protection.setAllowFiltering(false); | |
// Allowing users to format cells of the worksheet | |
protection.setAllowFormattingCell(true); | |
// Allowing users to format rows of the worksheet | |
protection.setAllowFormattingRow(true); | |
// Allowing users to insert columns in the worksheet | |
protection.setAllowInsertingColumn(true); | |
// Allowing users to insert hyperlinks in the worksheet | |
protection.setAllowInsertingHyperlink(true); | |
// Allowing users to insert rows in the worksheet | |
protection.setAllowInsertingRow(true); | |
// Allowing users to select locked cells of the worksheet | |
protection.setAllowSelectingLockedCell(true); | |
// Allowing users to select unlocked cells of the worksheet | |
protection.setAllowSelectingUnlockedCell(true); | |
// Allowing users to sort | |
protection.setAllowSorting(true); | |
// Allowing users to use pivot tables in the worksheet | |
protection.setAllowUsingPivotTable(true); | |
// Saving the modified Excel file Excel XP format | |
excel.save(dataDir + "APSettingsUsingAsposeCells_out.xls", FileFormatType.EXCEL_97_TO_2003); | |
// Print Message | |
System.out.println("Worksheet protected successfully."); |
يوجد أدناه مثال صغير للتطبيق. يفتح ملف Excel ويستخدم معظم إعدادات الحماية المتقدمة التي يدعمها Excel XP والإصدارات الأحدث.
// For complete examples and data files, please go to https://github.com/aspose-cells/Aspose.Cells-for-Java | |
// The path to the documents directory. | |
String dataDir = Utils.getSharedDataDir(AdvancedProtection.class) + "worksheets/"; | |
// Instantiating a Workbook object by excel file path | |
Workbook excel = new Workbook(dataDir + "book1.xls"); | |
WorksheetCollection worksheets = excel.getWorksheets(); | |
Worksheet worksheet = worksheets.get(0); | |
Protection protection = worksheet.getProtection(); | |
// Restricting users to delete columns of the worksheet | |
protection.setAllowDeletingColumn(false); | |
// Restricting users to delete row of the worksheet | |
protection.setAllowDeletingRow(false); | |
// Restricting users to edit contents of the worksheet | |
protection.setAllowEditingContent(false); | |
// Restricting users to edit objects of the worksheet | |
protection.setAllowEditingObject(false); | |
// Restricting users to edit scenarios of the worksheet | |
protection.setAllowEditingScenario(false); | |
// Restricting users to filter | |
protection.setAllowFiltering(false); | |
// Allowing users to format cells of the worksheet | |
protection.setAllowFormattingCell(true); | |
// Allowing users to format rows of the worksheet | |
protection.setAllowFormattingRow(true); | |
// Allowing users to insert columns in the worksheet | |
protection.setAllowInsertingColumn(true); | |
// Allowing users to insert hyperlinks in the worksheet | |
protection.setAllowInsertingHyperlink(true); | |
// Allowing users to insert rows in the worksheet | |
protection.setAllowInsertingRow(true); | |
// Allowing users to select locked cells of the worksheet | |
protection.setAllowSelectingLockedCell(true); | |
// Allowing users to select unlocked cells of the worksheet | |
protection.setAllowSelectingUnlockedCell(true); | |
// Allowing users to sort | |
protection.setAllowSorting(true); | |
// Allowing users to use pivot tables in the worksheet | |
protection.setAllowUsingPivotTable(true); | |
// Saving the modified Excel file Excel XP format | |
excel.save(dataDir + "AdvancedProtection_out.xls", FileFormatType.EXCEL_97_TO_2003); | |
// Print Message | |
System.out.println("Worksheet protected successfully."); |
Cell مشكلة الإقفال
إذا كنت تريد تقييد المستخدمين من تحرير الخلايا ، فيجب تأمين الخلايا قبل تطبيق أي إعدادات حماية. وإلا يمكن تحرير الخلايا حتى إذا كانت ورقة العمل محمية. في Microsoft Excel XP ، يمكن تأمين الخلايا من خلال مربع الحوار التالي:
مربع حوار لتأمين الخلايا في Excel XP
من الممكن قفل الخلايا باستخدام Aspose.Cells API أيضًا. تحتوي كل خلية على نمط API يحتوي أيضًا على طريقة setLocked. استخدمه لقفل أو إلغاء قفل الخلايا.
// For complete examples and data files, please go to https://github.com/aspose-cells/Aspose.Cells-for-Java | |
// The path to the documents directory. | |
String dataDir = Utils.getSharedDataDir(LockCell.class) + "worksheets/"; | |
// Instantiating a Workbook object by excel file path | |
Workbook excel = new Workbook(dataDir + "Book1.xlsx"); | |
WorksheetCollection worksheets = excel.getWorksheets(); | |
Worksheet worksheet = worksheets.get(0); | |
worksheet.getCells().get("A1").getStyle().setLocked(true); | |
// Saving the modified Excel file Excel XP format | |
excel.save(dataDir + "LockCell_out.xls", FileFormatType.EXCEL_97_TO_2003); | |
// Print Message | |
System.out.println("Cell Locked successfully."); |