ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   disable cell (https://www.excelbanter.com/excel-discussion-misc-queries/1327-disable-cell.html)

JoeMNY

disable cell
 
Greetings,

I'm sure this is possible but I can't figure it out. How can I disable a
cell based on input in another cell. Example:

A1=Powered
A2=Glider
A3=
A4=

If an "X" is placed in A3, I want A4 disabled (locked).

TIA


Frank Kabel

Hi
not completely save but
- select cell A4
- goto 'Data - Validation -. custom
- enter the formula
=A3<"X"

Note: This does not prevent copying data to this cell. If you need more
security you have to use VBA (an event procedure)


--
Regards
Frank Kabel
Frankfurt, Germany


JoeMNY wrote:
Greetings,

I'm sure this is possible but I can't figure it out. How can I
disable a cell based on input in another cell. Example:

A1=Powered
A2=Glider
A3=
A4=

If an "X" is placed in A3, I want A4 disabled (locked).

TIA



Peo Sjoblom

You can try datavalidationallowcustom and use

=A3<"X"

that will prevent anyone typing anything in A4 (but not pasting)
if A3 holds "X"


Regards,

Peo Sjoblom

"JoeMNY" wrote:

Greetings,

I'm sure this is possible but I can't figure it out. How can I disable a
cell based on input in another cell. Example:

A1=Powered
A2=Glider
A3=
A4=

If an "X" is placed in A3, I want A4 disabled (locked).

TIA


JoeMNY

I am just learning VB, can you help me with the code?

"Frank Kabel" wrote:

Hi
not completely save but
- select cell A4
- goto 'Data - Validation -. custom
- enter the formula
=A3<"X"

Note: This does not prevent copying data to this cell. If you need more
security you have to use VBA (an event procedure)


--
Regards
Frank Kabel
Frankfurt, Germany


JoeMNY wrote:
Greetings,

I'm sure this is possible but I can't figure it out. How can I
disable a cell based on input in another cell. Example:

A1=Powered
A2=Glider
A3=
A4=

If an "X" is placed in A3, I want A4 disabled (locked).

TIA




JoeMNY

Thanks that works but what I would really like is to lock the cell to not
allow any entry. I am just learning VB. Is there a way to do this with a VB
Procedure?

"Peo Sjoblom" wrote:

You can try datavalidationallowcustom and use

=A3<"X"

that will prevent anyone typing anything in A4 (but not pasting)
if A3 holds "X"


Regards,

Peo Sjoblom

"JoeMNY" wrote:

Greetings,

I'm sure this is possible but I can't figure it out. How can I disable a
cell based on input in another cell. Example:

A1=Powered
A2=Glider
A3=
A4=

If an "X" is placed in A3, I want A4 disabled (locked).

TIA



All times are GMT +1. The time now is 05:20 PM.

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