Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
alexandra60
 
Posts: n/a
Default Protect Cell from being edited


Can I protect cells from being edited after a user has entered
information?

I am using a macro for the user to enter their name in to a cell see
below:

Sub Ang()
'
' Ang Macro
' Macro recorded 16/02/2006 by stapen
'

'
ActiveCell.FormulaR1C1 = "Angela"
Selection.Locked = True
Selection.FormulaHidden = False

End Sub

The problem I have got is that the worksheet is protected, so it won't
protect the cell. But I don't want to unprotect the whole worksheet. I
don't want users to be able to overwrite information other users have
already entered.




--
alexandra60
------------------------------------------------------------------------
alexandra60's Profile: http://www.excelforum.com/member.php...o&userid=31215
View this thread: http://www.excelforum.com/showthread...hreadid=513560

  #2   Report Post  
Posted to microsoft.public.excel.misc
vezerid
 
Posts: n/a
Default Protect Cell from being edited

Alexandra,

you can unprotect right before your actions and protect immediately
afterwards

ActiveSheet.Protect
ActiveCell.FormulaR1C1 = "Angela"
Selection.Locked = True
Selection.FormulaHidden = False
ActiveSheet.Unprotect

Does this help?

Kostis Vezerides

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
protect specific cell but allow edit on other cell chiuinggum Excel Worksheet Functions 5 December 8th 05 07:22 PM
copying cell names Al Excel Discussion (Misc queries) 12 August 11th 05 04:01 PM
Cell color based upon cell value My View Excel Discussion (Misc queries) 11 July 6th 05 04:59 AM
Protect Cell Formatting Bill Schnur Excel Worksheet Functions 1 March 23rd 05 03:53 AM
protect cell bayanbaru Excel Worksheet Functions 2 February 14th 05 10:15 PM


All times are GMT +1. The time now is 05:15 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"