If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > PC based Database Applications > Microsoft Excel > locking a cell so that it can not be changed

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 12-30-04, 10:32
Todd Barkus Todd Barkus is offline
Registered User
 
Join Date: Nov 2003
Location: down on the cube farm, left then right then another left
Posts: 467
locking a cell so that it can not be changed

I have a cell that I would like to set "read-only". The cell's value is part of a calculation and when I accidently change it it causes problems. I do not want to lock the whole sheet, just the cell. Does anyone know if a macro could do this? The read-only does not need to be bullet-proof, just enough to stop me from accidentily changing. I will need to change the value periodically.
__________________
NOTE: Please disregard the label "Senior Member".
Reply With Quote
  #2 (permalink)  
Old 12-30-04, 10:47
Todd Barkus Todd Barkus is offline
Registered User
 
Join Date: Nov 2003
Location: down on the cube farm, left then right then another left
Posts: 467
As a follow-up I guess I am interested in any method that I can use to alert myself of the change so I can undo it.
__________________
NOTE: Please disregard the label "Senior Member".
Reply With Quote
  #3 (permalink)  
Old 12-30-04, 12:21
shades shades is offline
Registered User
 
Join Date: Oct 2003
Posts: 1,091
No need for macro (although it can be done). Select the entire worksheet (upper left corner), then go to Format > Cells > Protection (tab). Uncheck the box for "Locked". Then select just that cell, go to Format > Cells > Protection (tab). Check the box for "Locked". Click OK. Then protect the sheet Tools > Protection > Protect Sheet. If no password given, then it will be protected. You can change any other cell, just not that one.
__________________
old, slow, and confused
but at least I'm inconsistent!

Rich
(retired Excel 2003 user, 3/28/2008)

How to ask a question on forums
Reply With Quote
  #4 (permalink)  
Old 12-30-04, 17:05
Todd Barkus Todd Barkus is offline
Registered User
 
Join Date: Nov 2003
Location: down on the cube farm, left then right then another left
Posts: 467
You da man! (unless of course you are a women, I am being generic)) Thanks!

I guess I wasn't giving MS enough credit to think of only locking one cell. Documentation seemed like you have to lock all.

Thanks for the "consistency"!
__________________
NOTE: Please disregard the label "Senior Member".
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On