preventing change of certain cells

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hi
how can I "lock" some cells ie. not allow anybody to change them, yet leaving other cells free for input
Where can I find faq

Than

alekmil
 
1. Press Ctrl+a to select the entire worksheet
2. Click Format in the menu, then Cells, then the
Protection tab.
3. Uncheck the Locked box and press OK
4. Select the cells that you don't want anybody else to
change.
5. Click Format in the menu, then Cells, then the
Protection tab.
6. Check the Locked box and press OK
7. Click Tools in the menu, then Protection, then Protect
Sheet.
8. Type a password, if desired, then press OK.
9. Confirm the password and press OK
-----Original Message-----
Hi,
how can I "lock" some cells ie. not allow anybody to
change them, yet leaving other cells free for input.
 
Hi
try the following:
- select the cells for which you want to ALLOW entries
- goto 'Format - Cells - Protection' and uncheck 'Locked'
- goto 'Tools - Protection' and protect the worksheet


Frank
-----Original Message-----
Hi,
how can I "lock" some cells ie. not allow anybody to
change them, yet leaving other cells free for input.
 
=?Utf-8?B?YWxla21pbA==?= wrote
Hi,
how can I "lock" some cells ie. not allow anybody to change them, yet
leaving other cells free for input. Where can I find faq?

Thanx

alekmil

I know the Dennis and Frank offered the conventional method, but if you
don't want to Protect the sheet, here's an alternative I use:

Private Sub Worksheet_Change(ByVal Target As Range)
Dim NoEdit As Range
Set NoEdit = Intersect(Target, Range("E39:E41")) '<-- adjust for yours
If Not NoEdit Is Nothing Then
Application.EnableEvents = False
Application.Undo
Application.EnableEvents = True
MsgBox "Sorry, You are not allowed to change this cell!", vbCritical,
"Permission Denied!"
End If
End Sub
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top