ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   Conditionally protect a cell (https://www.excelbanter.com/excel-discussion-misc-queries/222552-conditionally-protect-cell.html)

bigjim

Conditionally protect a cell
 
I am using exell 2003. I want to allow access to a protected cell only if
the contents of another cell equal a certain value. for example: Cell b5 is
protected and the sheet is protected. If a user enters "Overweight" in cell
b2, I want them to be able to enter data into cell b5. With any other entry
in cell b2, I don't want them to be able to enter anything in cel b5. Can
this be done? I would appreciate any help.

Thanks,
Jim

Jim Thomlinson

Conditionally protect a cell
 
There is no way to conditionally lock a cell. In this case I would be
inclined to use custom validation. In the cell that you want protected add
the following
Data - Validation - Custom -
=B5 = "Overweight"
and uncheck allow blanks.

if you try to enter something into the cell and B5 < Overweight then an
error alert will pop up not allowing the change. Not that this can be
defeated by addin Overweight , making the change and then removing overweight.
--
HTH...

Jim Thomlinson


"bigjim" wrote:

I am using exell 2003. I want to allow access to a protected cell only if
the contents of another cell equal a certain value. for example: Cell b5 is
protected and the sheet is protected. If a user enters "Overweight" in cell
b2, I want them to be able to enter data into cell b5. With any other entry
in cell b2, I don't want them to be able to enter anything in cel b5. Can
this be done? I would appreciate any help.

Thanks,
Jim


bigjim

Conditionally protect a cell
 
Thank you very much. That's not ideal, but I can make it work. I didn't
think of using that, but that will solve my problem.

Jim

"Jim Thomlinson" wrote:

There is no way to conditionally lock a cell. In this case I would be
inclined to use custom validation. In the cell that you want protected add
the following
Data - Validation - Custom -
=B5 = "Overweight"
and uncheck allow blanks.

if you try to enter something into the cell and B5 < Overweight then an
error alert will pop up not allowing the change. Not that this can be
defeated by addin Overweight , making the change and then removing overweight.
--
HTH...

Jim Thomlinson


"bigjim" wrote:

I am using exell 2003. I want to allow access to a protected cell only if
the contents of another cell equal a certain value. for example: Cell b5 is
protected and the sheet is protected. If a user enters "Overweight" in cell
b2, I want them to be able to enter data into cell b5. With any other entry
in cell b2, I don't want them to be able to enter anything in cel b5. Can
this be done? I would appreciate any help.

Thanks,
Jim



All times are GMT +1. The time now is 10:40 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com