
Macro to Auto-Lock Cells Private Sub Worksheet_Change(ByVal Target As Range) This needs to be done so that only specific cells that we choose will be locked from editing. Now, none of the cells in the worksheet are protected, which means that all of the cells in the worksheet will be editable when you go to protect the worksheet.



This is different than just locking an entire spreadsheet because you still want to be able to edit and work with the other cells in the worksheet without having to select and unlock them individually. This macro allows you to have a cell automatically locked after a user enters something into it or into another specific cell, range, column, or row.
