Home |
Search |
Today's Posts |
|
#1
![]() |
|||
|
|||
![]() I wonder if anyone can tell me if it is possible to auto proect cells after data has been entered? Basically I have a spreadsheet that has two levels of protection - some cells are password protected and others available for all to enter data into. What I would like to achieve is once data has been entered into a row in the editable area that row becomes part of the password protected area automatically. Also is it possible to use the NOW (or similar) function to populate one cell with a date when another is filled? Ie a log entry is made in column B. When some data is entered into column B cthe corresponding entry in column A gets filled with todays date. Any help much appreciated. Regards Clive -- ccarmock ------------------------------------------------------------------------ ccarmock's Profile: http://www.excelforum.com/member.php...o&userid=27670 View this thread: http://www.excelforum.com/showthread...hreadid=471820 |
#2
![]() |
|||
|
|||
![]()
I can't answer the first part, but the second part is easy
just enter into a1 =IF(b1=0,0,NOW()) format a1 as a date in tools/options uncheck show zeros "ccarmock" wrote: I wonder if anyone can tell me if it is possible to auto proect cells after data has been entered? Basically I have a spreadsheet that has two levels of protection - some cells are password protected and others available for all to enter data into. What I would like to achieve is once data has been entered into a row in the editable area that row becomes part of the password protected area automatically. Also is it possible to use the NOW (or similar) function to populate one cell with a date when another is filled? Ie a log entry is made in column B. When some data is entered into column B cthe corresponding entry in column A gets filled with todays date. Any help much appreciated. Regards Clive -- ccarmock ------------------------------------------------------------------------ ccarmock's Profile: http://www.excelforum.com/member.php...o&userid=27670 View this thread: http://www.excelforum.com/showthread...hreadid=471820 |
#3
![]() |
|||
|
|||
![]()
The only problem with NOW is that it always will reset to the day it is
opened or printed "widman" wrote: I can't answer the first part, but the second part is easy just enter into a1 =IF(b1=0,0,NOW()) format a1 as a date in tools/options uncheck show zeros "ccarmock" wrote: I wonder if anyone can tell me if it is possible to auto proect cells after data has been entered? Basically I have a spreadsheet that has two levels of protection - some cells are password protected and others available for all to enter data into. What I would like to achieve is once data has been entered into a row in the editable area that row becomes part of the password protected area automatically. Also is it possible to use the NOW (or similar) function to populate one cell with a date when another is filled? Ie a log entry is made in column B. When some data is entered into column B cthe corresponding entry in column A gets filled with todays date. Any help much appreciated. Regards Clive -- ccarmock ------------------------------------------------------------------------ ccarmock's Profile: http://www.excelforum.com/member.php...o&userid=27670 View this thread: http://www.excelforum.com/showthread...hreadid=471820 |
#4
![]() |
|||
|
|||
![]() Yes I see what you mean - so every time I open the sheet the dates are updated..... If the first time it triggers it coudl replace the formula with the actual value that woudl achieve what I need.... -- ccarmock ------------------------------------------------------------------------ ccarmock's Profile: http://www.excelforum.com/member.php...o&userid=27670 View this thread: http://www.excelforum.com/showthread...hreadid=471820 |
#5
![]() |
|||
|
|||
![]()
ccarmock
Private Sub Worksheet_Change(ByVal Target As Excel.Range) 'when entering data in a cell in Col B On Error GoTo enditall Application.EnableEvents = False If Target.Cells.Column = 2 Then n = Target.Row If Excel.Range("B" & n).Value < "" Then Excel.Range("A" & n).Value = Now End If End If enditall: Application.EnableEvents = True End Sub This is sheet event code. Right-click on the sheet tab and "View Code". Copy/paste the code into that module. As you enter data in column B, the date will be placed in A on same row. Gord Dibben Excel MVP On Thu, 29 Sep 2005 14:38:30 -0500, ccarmock wrote: Yes I see what you mean - so every time I open the sheet the dates are updated..... If the first time it triggers it coudl replace the formula with the actual value that woudl achieve what I need.... |
#6
![]() |
|||
|
|||
![]() Hi - Many thanks that works perfectly! I wonder if something similar could be used to modify the ranges used to protect data in the worksheet? Ie once data is entered into a cell in column B I woudl then like to change that cell from being in a range that allows anyone to edit into a range that is password protected. Regards Clive -- ccarmock ------------------------------------------------------------------------ ccarmock's Profile: http://www.excelforum.com/member.php...o&userid=27670 View this thread: http://www.excelforum.com/showthread...hreadid=471820 |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Lock cells without protecting sheet? | Excel Worksheet Functions | |||
Subtract a group of cells from a total based on ending date | Excel Discussion (Misc queries) | |||
Count cells based on date range in another column | New Users to Excel | |||
Auto Skipping and Protecting Worksheet | New Users to Excel | |||
assign auto number and auto date | Excel Discussion (Misc queries) |