Protecting cells based on a specific value

topcat

New Member
Joined
Oct 23, 2002
Messages
3
Please does anyone know if it is possible to prevent the contents of a cell being altered based on the value stored in that cell? To be more precise: If the cell value is "No Change" (which has been calulated by a formula) then the user should not be able to alter this. However if another cell in the same column has a different value then the user is allowed to alter it.
TIA
 

Excel Facts

Shade all formula cells
To shade all formula cells: Home, Find & Select, Formulas to select all formulas. Then apply a light fill color.
it would be something like
ActiveSheet.Protection.Enabled = False
If Range("A1").value = "No Change" then
Range("A1").Locked = True
endif
ActiveSheet.Protection.Enabled = True
 
Upvote 0
Thanks. I am not quite sure where I put this but will have a play with it to see if I can figure it out
 
Upvote 0
I stuck it there and it doesn't like it - tells me that object doesn't support this property or method - so am going to the manuals for some ideas on what it might like
 
Upvote 0

Forum statistics

Threads
1,214,648
Messages
6,120,726
Members
448,987
Latest member
marion_davis

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