Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Excel Locking cells on save/autosave

Status
Not open for further replies.

AP186

Technical User
Apr 13, 2004
12
GB
Hi
I need to be able to stop my users amending historical data once the workbook is saved. Is there a way of locking the cells on an 'autosave' or 'save' function?

Many Thanks in advance
 
Put a password on the file. You can protect it from modification but still allow others to view the data. They just can't save it.

File - Save As - Tools - General Options - Password to modify.

(I have a file at work that others need to see but I don't want them to be able to change the data. The modify prevention password works perfectly for this.)

--
JP
 
For what you are wanting, you would need to use VBA

Please have a look into the Worksheet_CHANGE event and the "Locked" property of a cell in conjunction with protecting the worksheet

Then post with any specific issues in forum707



Rgds, Geoff

We could learn a lot from crayons. Some are sharp, some are pretty and some are dull. Some have weird names and all are different colours but they all live in the same box.

Please read FAQ222-2244 before you ask a question
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top