Make cell locked based on value in another cell

newbieX

New Member
Joined
Jul 24, 2013
Messages
35
I want to control whether a cell is locked or not based on a value in another cell entered on a data entry form. The data entered in row by row, thus the cell column will remain the same but the row number will increase.

Thus I want a formula(or vba code?) in cell B1 to say IF(A1="No", unlock, lock) and so on down the column

How might I accomplish this. The worksheet is protected.

Excel 2010.
 

Excel Facts

Will the fill handle fill 1, 2, 3?
Yes! Type 1 in a cell. Hold down Ctrl while you drag the fill handle.
I want to control whether a cell is locked or not based on a value in another cell entered on a data entry form. The data entered in row by row, thus the cell column will remain the same but the row number will increase.

Thus I want a formula(or vba code?) in cell B1 to say IF(A1="No", unlock, lock) and so on down the column

How might I accomplish this. The worksheet is protected.

Excel 2010.

I figure it out. In the formula box of Data Validation for the cell I entered

Code:
=IF(A1="NO",FALSE,TRUE)

It only works for cells that do not already have a Data Validation set so I still need to figure out how to tackle this issue for other cells that use pull down lists via Data Validation. Ideas anyone?
 
Upvote 0

Forum statistics

Threads
1,223,227
Messages
6,170,848
Members
452,361
Latest member
d3ad3y3

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top