Locking - Please help

mm178

Board Regular
Joined
Dec 24, 2009
Messages
52
I have a log book for my H.S. students to enter info. I need to make it so that when one row of information is filled in, then it is not longer editable.

Once they enter an item they can not delete that entry (Several cells in on row)

I am using Excel 2003

Any IDEAS

Please Help?
 
Last edited:

Excel Facts

Format cells as time
Select range and press Ctrl+Shift+2 to format cells as time. (Shift 2 is the @ sign).
Code:
Private Sub Worksheet_Change(ByVal Target As Range)
   ActiveSheet.Unprotect "password"
   Target.Locked = True
   ActiveSheet.Protect "password"
   ActiveSheet.EnableSelection = xlUnlockedCells
End Sub

Try that in the worksheet code module.

Remember that all the cells are locked by default, so you'll have to unlock all of them (or whichever apply) before protecting the sheet with your password.
 
Upvote 0
Will this work if each tab has a password that the students have to put in before they can add an item. This is to keep other students from entering info on each others tabs


Also if a students makes a mistake is there a password to put in to over write the locking?
 
Upvote 0

Forum statistics

Threads
1,215,004
Messages
6,122,659
Members
449,091
Latest member
peppernaut

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top