Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 3
Default protect cells but allow to enter data but not remove once entered

set up spreadsheet for holidays but need to protect cells but allow a user to
enter a number in a cell but not allow to remove once entered
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1
Default protect cells but allow to enter data but not remove once entered


You can make use of something i put together for that reason, it's
located here 'Code Cage Downloads - The Code Cage Forums'
(http://www.thecodecage.com/forumz/lo...kid=19&catid=2)
but to download it you will have to join the forum, it's completely
free.

hugrl;313605 Wrote:
set up spreadsheet for holidays but need to protect cells but allow a
user to
enter a number in a cell but not allow to remove once entered



--
Simon Lloyd

Regards,
Simon Lloyd
'The Code Cage' (http://www.thecodecage.com)
------------------------------------------------------------------------
Simon Lloyd's Profile: http://www.thecodecage.com/forumz/member.php?userid=1
View this thread: http://www.thecodecage.com/forumz/sh...ad.php?t=87672

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 35,218
Default protect cells but allow to enter data but not remove once entered

This sounds like a bad idea to me. How would you ever correct typing mistakes?



hugrl wrote:

set up spreadsheet for holidays but need to protect cells but allow a user to
enter a number in a cell but not allow to remove once entered


--

Dave Peterson
  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 3
Default protect cells but allow to enter data but not remove once ente

So Admin can edit & delete wrong data entered & who entered data
"Dave Peterson" wrote:

This sounds like a bad idea to me. How would you ever correct typing mistakes?



hugrl wrote:

set up spreadsheet for holidays but need to protect cells but allow a user to
enter a number in a cell but not allow to remove once entered


--

Dave Peterson

  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 22,906
Default protect cells but allow to enter data but not remove once ente

This sheet event code will lock cells in columns B and C and enter the login
username in column C when data is entered in column B

Note: first unlock all cells in columns B and C

Private Sub Worksheet_Change(ByVal Target As Excel.Range)
On Error GoTo enditall
Application.EnableEvents = False
If Target.Cells.Column = 2 Then
ActiveSheet.Unprotect Password:="justme"
If Target.Value < "" Then
Target.Locked = True
With Target.Offset(0, 1)
.Value = Environ("Username")
.Locked = True
End With
End If
End If
enditall:
Application.EnableEvents = True
ActiveSheet.Protect Password:="justme"
End Sub

To hide the code and password from prying eyes, lock the VBA Project from
viewing.


Gord Dibben MS Excel MVP

On Mon, 20 Apr 2009 12:17:25 -0700, hugrl
wrote:

So Admin can edit & delete wrong data entered & who entered data
"Dave Peterson" wrote:

This sounds like a bad idea to me. How would you ever correct typing mistakes?



hugrl wrote:

set up spreadsheet for holidays but need to protect cells but allow a user to
enter a number in a cell but not allow to remove once entered


--

Dave Peterson




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 cells from other users w/out me having to enter pw Tara at Walsh Excel Discussion (Misc queries) 4 May 14th 07 10:40 PM
protect cells only after information is entered Sean Campbell Excel Discussion (Misc queries) 0 April 24th 07 04:08 PM
How do I lock unclock cells to protect the data entered? Sandi@hotmail Excel Worksheet Functions 1 March 13th 07 02:46 AM
i have a excell for with data entered in and need to enter new da. c tech Excel Worksheet Functions 0 April 10th 06 03:08 PM
Protect data in cells after entered Jeff Hall Excel Discussion (Misc queries) 1 May 16th 05 08:54 PM


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