Conditional Cell Lock

May 29, 2008

I have an sheet(see attached) with some dummy data, now i want to lock (with password) only those cells depending on the dropdown (highlighted in sheet).For eg,if we select A from dropdown of col c and then locked from dropdown of col D , it should lock the complete row(s) of value A in col H and rows with value B shall remain editable.

View 14 Replies


ADVERTISEMENT

Conditional Cell Lock Unlock

Dec 10, 2006

None of the information Ive found on the forums seem to work in my sheet and Im not sure why. After protecting my sheet/workbook, I would like a particular input of a cell to Unlock another cell.

ie if the contents of cell A1 is the phrase "TRUE", then cell B1 will be Unlocked for editing. If the contents of A1 is "FALSE", then B1 shall remain locked. From what i can tell, this must be carried out using VBA code. If anyone can resolve this issue, Id be also very grateful if you could explain what each line of the code means

View 6 Replies View Related

Conditional Formatting Formula Lock?

Apr 29, 2014

I have a sheet which contains conditional formatting formulas.How i can Lock or protect the forumluas to view others.

View 2 Replies View Related

Conditional Macro - Insert Text And Lock All Duplicate Cells Except For First One

Sep 16, 2012

I am new to VBA but I am trying to insert text and lock all duplicate cells except for the first one. Below is the macro I am trying to make. I keep getting an error on the line:

If(COUNTIF($A$9:$A$76,A9)=1,FALSE,NOT(COUNTIF($A$9:A9,A9)=1))

This is my macro:

Sub SetVoters()
'
' SetVoters Macro
'

'
Sub SetVoters()
'
' SetVoters Macro
'

'
ActiveSheet.Unprotect

[Code] ......

View 1 Replies View Related

Lock / Unlock Excel Cell Based On Contents Of Another Cell?

Sep 12, 2013

How to Lock/Unlock an Excel Cell Based on the Contents of Another Cell?

View 1 Replies View Related

Lock A Cell Value

Jul 25, 2007

=IF(A4='Exported Data'!B2,'Exported Data'!C2,"")

How can I lock A so when I copy over to the right the formula doesn't change that reference to B4?

Is there a way to have the True value (Exported Data'!C2) reference one cell over instead of selecting the cell to reference from?

View 9 Replies View Related

Lock Cell Value

Jan 12, 2008

Need code that would make cell J2 be populated with U no matter what was placed in cell J2 either manually or externally.

View 9 Replies View Related

Cell Lock

Feb 24, 2004

I can have amacro which will lock each cell where a "Y" or "N" is inserted........ eg the netire sheet is unprotected but the moment Y is inserted in C 5 the cell gets locked, next entry in D 10 has a N entry and that too upon entry get's locked
The idea being once Y or N is typed that cell can no longer be changed

View 9 Replies View Related

Lock Cell After Data Entered And Have Moved Off That Cell

Jan 5, 2013

Currently have a column of cells that after the data has been entered we would like the cell to lock to prevent changes. The sheet is currently protected with the cells in question unlocked (D173:D250). We would like to be able to change the data if we unprotect the sheet. We would also like to be able to add/delete cells (list) in the code as needed.

View 9 Replies View Related

VBA To Clear And Lock / Unlock Cell Based On Another Cell

Jan 14, 2013

I'm trying to write a vba code that does the following....

There is a question in column A to which the user chooses yes or no from column B. Based on the response in column B, I'd like the same row column D to be formatted so that if the anser is yes, the cell is white, and unlocked. If the response is no, the cell is cleared, locked and the greyed out. (e.g. if B4 is "Yes", the format in D4 will change) So far I've come up with the following which formats the colour:

Dim response As Range
For Each response In Range("$C$10:$C$73")
If response.Value = "Yes" Then

response.Select
ActiveCell.Offset(0, 2).Range("A1").Select
With Selection.Interior

[Code] .......

How to add in a .clearcontents function, so that the contents are cleared if the response is not "yes", and also what I would need to add to unlock the cell in column D?

View 1 Replies View Related

Lock Format In Cell - Even If Copy And Pasting To That Cell

Aug 17, 2006

Is it possible to lock in the formatting that would require 12 digits even if someone was copying and pasting to the cell?

We are looking to make our users add information into cells in the format 0-00000-00000-0. They are often copy and pasting, thus overwritting the custom format we have in those cells.

I've looked at validation, but custom only works for a formula.

View 9 Replies View Related

How To Lock Cell Based On First Value

Jul 2, 2014

I have a multisheet excel workbook that I am programming. I was wondering if there is a way to lock a cell on one sheet after the initial value was put in, allowing me to change it later. This may not be so clear so here is the problem....

I have Workbook1. The input from cell A3 on Sheet1 is 5. I have made a second sheet called Order Form. In cell B5 of Order form I have made it ='Sheet1'!A3. I am looking for a way to be able to change cell A3 on Sheet1, but keep the 5 on Order Form.

View 1 Replies View Related

VBA To Auto Lock A Cell

Apr 18, 2012

I have a range of cells I want to become locked (thus, uneditable), based upon the value of another cell.

For example, if cell A1 is "True," (based on a drop-down, not a formula) I want cells B1:B10 to become locked. I want the user to be able to edit these cells only when A1 is false. Also, the sheet is already passsword protected.

View 2 Replies View Related

Can Lock Set Of Cell To Only Allow 30 Characters Or Less

Jun 26, 2014

Is there a way I can lock a set of cell to only allow 30 characters or less and if so if they copy and paste they can go over 30 characters in a cell. I can not allow they to go over 30 characters.

View 2 Replies View Related

How To Lock A Particualr Cell Having Value

Jul 3, 2006

how to lock a particular column having the particular value for all the sheets in a single work book thru macro code?

View 9 Replies View Related

Lock Cell After Entry

Mar 14, 2007

I am using the code below to prompt the user to enter his/her name in cell B4. What I would like to do is have it so that after the user enters his/her name, that cell is locked and cannot be cleared.

Private Sub Worksheet_SelectionChange(ByVal Target As Range)
If Target.Address = "$B$4" Then
Range("B4").Value = InputBox("Please Enter " + Range("a4"), "Company")
End If
End Sub

View 9 Replies View Related

Lock Cell After Selection

May 8, 2007

Is it possible to lock the Cell after selecting the answer from list of that cell?
mean disable that cell from editing, deleting, and selecting another answer

View 2 Replies View Related

Lock Current Row Based On Cell Value

Jul 16, 2012

I need to have a current row password protected when the value in ActiveCell.Offset(0, 0).Value = "Close"
but just to lock that current row. What I have is a close button on a userform that changes the ActiveCell.Offset(0, 0).Value = "Close", i just need to add another line of code to lock the row.

VB: ActiveCell.Offset(0, 0).Value = "Close" (And lock current row With password 123)

View 2 Replies View Related

Lock Cell Contain Formula But Allow To Insert Row?

Nov 8, 2013

i am having problem with doing team, i would like to lock cell contain formulas but allow users insert row.

View 2 Replies View Related

Automatic Cell Lock After Typing?

Nov 23, 2012

I want to learn how i can able to do a function or ... to LOCK a Cell automatically after editing or typing and no one able to edit it again without entering Password.

View 14 Replies View Related

Lock Data In Cell After Entering Value?

Feb 2, 2014

0: i have a sheet 1 protected and few edit range (Col A,B,C,D,E and F).

1: I have a validation on multiple adjacent columns (like Col A, Col C, Col E).
2: I need a code where if i select value in col a (cell A2) cell B2 should get current date and Time and both the cells (A2 and B2) should be locked. when i select data in cell C2 , D2 should get current date and time(Cell C2 and D2 should be protected).
3: User can enter data in A3 and B3 will get current date and Time (now A3 and B3) should be locked.
4: I need a function where user can call it and unlock the locked cells and edit the data and re-lock the cells again.

apart from the Col A,B,C,D,E and F, other columns and cells remain locked.

View 2 Replies View Related

How To Lock Certain Cells If Another Cell Is Blank

Mar 8, 2014

i have a situation where i want cells c13:e13 to be locked if cell g5 is blank. and same cells will be unlocked only if g5 contains text only.

View 4 Replies View Related

Lock Row Based On Cell Contents

Oct 17, 2008

I wish to be able to lock an entire row after an entry has been made in a certain cell.

e.g. let's say i want to lock row 9 in its' entirety following entry of "Yes" in cell G9. If there is no entry in G9 the the entire row should be still unlocked. Likewise with any row with a corresponding entry in column G.

View 14 Replies View Related

Lock Cell Reference In Formulas

Nov 30, 2009

In the attached example, I need to create a formula for cell I2 (Balance Remaining) that is driven off the most recent calculation (in this case, F68) but still allows for additional rows to be added to the ongoing list of orders. I believe I'm supposed to use an index formula but not sure how to write/apply it? I need to be able to add rows past 68 and still have Cell I2 (Balance Remaining) continue to calculate correctly.

View 10 Replies View Related

How To Lock Cell Once Data Has Been Inputted

Sep 16, 2011

Is it possible to lock a cell once data has been inputted into it??

I want to make a spreadsheet which has empty cells for reference numbers that once entered cannot be changed unless it is by the administrator.

i also want the spreadsheet to be accessed on multiple pc's by multiple users.

View 9 Replies View Related

How To Auto Lock A Cell After Entry

Aug 27, 2012

I'm creating an inventory of cars for a car dealership that has about 27 or so columns and 500 rows for entries. Currently there are 50 rows used to keep track of inventory and with the additional rows for future entries. I want to set it up where the data entered into the cells gets locked automatically when saved and reopened for future use and can only be altered if a password is entered. Table is C3:AE503.

View 5 Replies View Related

Lock Cell But Allow User To Click On It?

Sep 8, 2012

I have a series of consecutive cells that I have a number entered in it. AP50 through AP 74 are numbered 1 through 25. I don't want the user to be able to change the number but I do want them to be able to click in the cell as this makes other functions happen.

View 3 Replies View Related

How To Lock Cell Reference When Using EXACT Fx

Apr 21, 2014

I have a spreadsheet that evaluates cells against eachother and if they don't match I either delete the whole row, or delete up. When I do this, I have to redo the formula as I get an error.

So I start with: =EXACT(A1,G1).... and once I delete a row or delete "up", I get =EXACT(#REF!,$G3).

I have tried =EXACT(INDIRECT(A1,G1)), =EXACT(INDIRECT($A1,$G1)), and also =EXACT($A1,$G1).

None of these work.

View 9 Replies View Related

Lock Any Cell That Contains Data B4 Saving

Mar 18, 2007

I am trying to lock any cell within a set range that contains data but I want this only to be activated when the user saves the file.

View 3 Replies View Related

Lock Cell Based Upon Formula

Apr 10, 2007

Is it possible to lock all cells with the exception of a select few(say a column) based upon a date? I have a spreadsheet where I want to lock all cells with the exception of the current months information. I want the spreadsheet to auto unlock the date that is listed on the top of the spreadsheet. I have columns for all months of the yea and I have the current month listed in cell A1. I want match the A1 cell to the column header to unlock the correct column.

View 4 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved