#1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Sprankler
 
Posts: n/a
Default Lock cell entry

Is there a way to prevent changing, or re-entering data in an Excel cell
after initial entry?
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Bernie Deitrick
 
Posts: n/a
Default Lock cell entry

Sprankler,

Copy the code below, right click on the sheet tab, select "View Code" and paste the code in the
window that appears.

HTH,
Bernie
MS Excel MVP

Private Sub Worksheet_Change(ByVal Target As Range)
ActiveSheet.Unprotect
Target.Locked = True
ActiveSheet.Protect
End Sub

"Sprankler" wrote in message
...
Is there a way to prevent changing, or re-entering data in an Excel cell
after initial entry?



Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Validation to force entry in a cell Matt D Francis Excel Worksheet Functions 4 October 4th 05 02:38 PM
how can i lock cell immediately if any value Entered? Sureshsmartdc New Users to Excel 2 August 20th 05 11:05 PM
Copy cell format to cell on another worksht and update automatical kevinm Excel Worksheet Functions 21 May 19th 05 11:07 AM
Is there a way to lock out the format for the cell and still allow data entry and C&P? Marc New Users to Excel 1 April 4th 05 07:50 AM
resolving a numeric cell entry for its meaning vtcrob Excel Worksheet Functions 0 February 4th 05 02:23 AM


All times are GMT +1. The time now is 09:40 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"