![lock cells in excel lock cells in excel](https://eadn-wc04-371788.nxedge.io/cdn/wp-content/uploads/2020/03/Screenshot_3-28.png)
Code : Sub sumit () Dim mainworkBook As Workbook Set mainworkBook ActiveWorkbook mainworkBook.Sheets ('Main').Range ('A1:C5.
#LOCK CELLS IN EXCEL PASSWORD#
Note: If you wont provide the password then your cells will not be locked. Click the box to check it if it's not already checked. Lock only few specific cells and rest of the cells in the work sheet are not locked. Make sure the box for the Locked option is checked.In the Format Cells window, click the Protection tab.You can also use the Ctrl+ Shift+ F key combination to open the Format Cells window. Press the Ctrl key and the 1 key together ( Ctrl+ 1) on your keyboard to open the Format Cells window.Select all cells in the worksheet by clicking the Select All button, found above the row numbers and to the left of the column headers.To protect a worksheet in Microsoft Excel, follow the steps below. Enter the password again in the Confirm Password window and click OK.Below are the steps to disable the lock property for all the cells, after which we can lock the row height and the column width: Select all the cells in the worksheet by clicking on the gray triangle at the top-left part of the worksheet. In the Allow all users of this worksheet to section, make sure only the box for the Select unlocked cells option is checked, then click OK. Disabling the Lock Property for all Cells.Enter a password for unlocking the protected cells in the Password to unprotect sheet text field. In the Protect group, click the Protect Sheet option.Click the Protection tab, check the box for the Locked option, then click OK.This applies to Excel 365., 2019, 2016, 2013, 20 but was available in older versions of Excel as well. First, unlock the cells where you want to allow users to make changes to the data or formula and then protect the remainder of the worksheet. Open the Format Cells window by pressing the Ctrl+ 1 key combination again. Its easy to lock cells in Microsoft Excel to protect data or formulas.
![lock cells in excel lock cells in excel](https://www.wikihow.com/images/a/ae/Lock-Cells-in-Excel-Step-26-Version-2.jpg)
#LOCK CELLS IN EXCEL HOW TO#
For help to select more than one cell, see: How to select one or more cells in a spreadsheet program. Subscribe to get more articles like this oneĭid you find this article helpful? If you would like to receive new articles, join our email list.If necessary, you can select more than one cell to protect. Click Unprotect Sheet on the Review tab in the Ribbon.Display the worksheet you want to unprotect.Use Protect Sheet icon to lock cells in the active worksheet. Excels protection commands reside under the Changes section of the Review tab in the Ribbon. (II) How to lock certain cells in excel(The second locking method) 1. Therefore, you must cancel the lock on all cells before locking a cell, then protect the cell to be frozen, it will be locked, otherwise all cells will be locked. After setting which cells are to be locked, lets now protect the entire worksheet. Excel locks all cells by default, The reason why each cell can still be edited is because no protection is set. Unprotecting the sheet and unlocking cells Setting a cell as locked makes it ready to be locked when its parent worksheet becomes protected. You will be unable to enter or change data or formulas in the locked cells. Passwords are case sensitive and you should keep a copy of your passwords. Enter a password (you will need to set a password if you don’t want others to be able to unprotect the sheet).Be sure to scroll down to see all of the available options. Check or uncheck the desired options (it’s usually best to leave the first two checked).In the Changes group, click Protect Sheet.Display the worksheet you want to protect.The second step in this strategy is to protect the sheet using the Review tab on the Ribbon: Locking remaining cells by protecting the worksheet Nothing will appear to occur until you protect the sheet. Right-click the selected cell(s) and choose Format Cells or press Ctrl + 1.The first step in this process is to unlock cells where you want to allow users to make changes to the data or formula: Recommended article: 10 Excel Data Entry Tricks and Shortcuts Every User Should Knowĭo you want to learn more about Excel? Check out our virtual classroom or live classroom Excel courses > Unlocking specific cells First, unlock the cells where you want to allow users to make changes to the data or formula and then lock or protect the remaining cells in the worksheet. This is a great feature for preventing complex formulas and functions from being. It’s easy to lock and protect cells in Excel to protect data or formulas. A Locked cell cannot be formatted, nor can its contents be changed or deleted. Easily Lock and Protect Cells in Microsoft Excelīy Avantix Learning Team | Updated January 24, 2021Īpplies to: Microsoft® Excel® 2010, 2013, 2016, 2019 and 365 (Windows)