Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1
Default Conditional formatting/functions

Hi, I'm trying to format a worksheet so that when someone enters data,
this can't be deleted or changed by the subsequent users. I still want
users to be able to enter data in other cells though. Is there a way
to do this with conditional formatting or functions?
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 22,906
Default Conditional formatting/functions

Only through event code which would lock each cell and protect the sheet after
entry.

Of course entering into the next cell would uprotect the sheet, lock that cell
and re-porotect the sheet.

Carry on entering, locking, protecting, unprotecting,locking...........

Private Sub Worksheet_Change(ByVal Target As Excel.Range)
On Error GoTo enditall
Application.EnableEvents = False
If Target.Cells.Column = 2 Then
Me.Unprotect Password:="justme"
n = Target.Row
If Excel.Range("B" & n).Value < "" Then
Excel.Range("B" & n).Locked = True
End If
End If
enditall:
Application.EnableEvents = True
Me.Protect Password:="justme", userinterfaceonly:=True
End Sub

Before adding the code to the sheet module, select all cells and
FormatCellsProtection. Uncheck "Locked".

Add the code then start entering data in column B.


Gord Dibben MS Excel MVP

On Sun, 4 May 2008 20:14:53 -0700 (PDT), wrote:

Hi, I'm trying to format a worksheet so that when someone enters data,
this can't be deleted or changed by the subsequent users. I still want
users to be able to enter data in other cells though. Is there a way
to do this with conditional formatting or functions?


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
OR Functions in a Conditional Formatting Furmula Kevin Rodriguez Excel Worksheet Functions 4 August 25th 06 10:10 AM
combining conditional formatting and functions zvi Excel Worksheet Functions 2 December 9th 05 12:37 PM
cannot use ISEVEN or ISODD functions in Conditional Formatting Scott Paine Excel Worksheet Functions 6 December 6th 05 09:44 PM
Nested functions in conditional formatting formulae Joseph Excel Discussion (Misc queries) 3 October 20th 05 11:52 PM
Multiple FIND functions in Conditional Formatting RocketFuMaster Excel Worksheet Functions 2 March 2nd 05 06:09 PM


All times are GMT +1. The time now is 11:46 PM.

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

About Us

"It's about Microsoft Excel"