Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Jeff Hall
 
Posts: n/a
Default Protect data in cells after entered

Need a worksheet where data can be entered but, once it is entered can not be
changed. The purpose of this is for accountability. Example: If you enter
a customers name on a worksheet and an amount of money they owe you should
not be able to delete/dhange that data in the future but only add additional
data to the worksheet.
  #2   Report Post  
Ron de Bruin
 
Posts: n/a
Default

Hi Jeff

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

Try this event in a sheet module
First change locked in all cells in the worksheet
select the cells and press Ctrl-1 and uncheck locked on the
protection tab

--
Regards Ron de Bruin
http://www.rondebruin.nl



"Jeff Hall" <Jeff wrote in message ...
Need a worksheet where data can be entered but, once it is entered can not be
changed. The purpose of this is for accountability. Example: If you enter
a customers name on a worksheet and an amount of money they owe you should
not be able to delete/dhange that data in the future but only add additional
data to the worksheet.



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
Sort pages? David Excel Discussion (Misc queries) 15 May 13th 05 11:33 PM
trying to create an (almost) circular formula between cells and data validated cells with lists KR Excel Worksheet Functions 0 May 12th 05 07:21 PM
Protecting Workbook Paul Cooling Excel Discussion (Misc queries) 2 March 7th 05 11:55 AM
populate cells with data from another sheet Pepe_abu Excel Worksheet Functions 0 January 15th 05 08:51 AM
Convert data of cells to any type: Number, Date&Time, Text Kevin Excel Discussion (Misc queries) 0 December 30th 04 06:55 AM


All times are GMT +1. The time now is 09:21 AM.

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"