Reuse: Quickly insert complex formulas, charts and anything that you have used before Encrypt Cells with password Create Mailing List and send emails.The Best Office Productivity Tools Kutools for Excel Solves Most of Your Problems, and Increases Your Productivity by 80% You can easily unlock selected cells and protect worksheet with the Worksheet Design utility of Kutools for Excel. And only the specified cells are allowed data entry. Now the worksheet is protected as well as the cell formatting. In a popping up Kutools for Excel dialog box, click the OK button. Please change the range based on your needs.ģ. Note: In the code, C2:C20 is the range which the cells you just allow data entry. MsgBox "Only allow data entry in range C2:C20", vbInformation, "Kutools for Excel" VBA code: Protect cell formatting but only allow data entry Sub AllowDataEntryOnly()ĪctiveSheet.Protect Userinterfaceonly:=True, AllowFiltering:=True In the Microsoft Visual Basic for Applications window, double click ThisWorkbook on the Project pane, and then copy and paste the below VBA code into the ThisWorkbook (Code) window. Press Alt + F11 keys at the same time to open the Microsoft Visual Basic for Applications window.Ģ. You can also run the following VBA script to protect cell formatting but only allow data entry in Excel. But the specified cells are allowed data entry only. Now the worksheet is protected, and the cell formatting is not changed. Please specify and conform your password in the Protect Sheet and Confirm Password dialog boxes. Now go to click Review > Protect Sheet.Ĥ. In the Format Cells dialog box, uncheck the Locked box under the Protection tab, and then click the OK button. Select the cells you need to protect their formatting but only allow data entry, then press Ctrl + 1 keys simultaneously to open the Format Cells dialog box.Ģ. Protect cell formatting but only allow data entry with Kutools for Excelįor protecting cell formatting but only allow data entry, you need to unlock these cells firstly, and then protect the worksheet. Protect cell formatting but only allow data entry with VBA code Protect cell formatting but only allow data entry by protecting worksheet This article provides three methods to achieve it. In many cases, you may need to protect the formatting of a range of cells and only allow data entry in Excel. How to protect cell formatting but only allow data entry in Excel?
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |