Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
zhj23
 
Posts: n/a
Default edit cells only with authority

Hi Freinds

A protected worksheet with some unlocked cells which allowed users to input
data. Once it is inputted, how could we control the subsequent editing of
these cells only by authorised personnel/password?

Thank you.
  #2   Report Post  
Rowan
 
Posts: n/a
Default

You could use a sheet event to lock cells once they have been edited. Right
click the sheet tab and select View Code. Paste this macro onto the code
module for the sheet and change the password as required.

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

Hope this helps
Rowan

"zhj23" wrote:

Hi Freinds

A protected worksheet with some unlocked cells which allowed users to input
data. Once it is inputted, how could we control the subsequent editing of
these cells only by authorised personnel/password?

Thank you.

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
Protecting Workbook Paul Cooling Excel Discussion (Misc queries) 2 March 7th 05 11:55 AM
Help adding text values Texas-DC_271 Excel Worksheet Functions 7 January 15th 05 11:14 PM
How do I edit, copy and paste text in excel cells? floridactyl New Users to Excel 2 December 31st 04 03:52 PM
To safety merge cells without data destroyed, and smart unmerge! Kevin Excel Discussion (Misc queries) 0 December 30th 04 07:17 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 01:07 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"