How to freeze a cell on a specific condition

aashwinjain

New Member
Joined
Aug 11, 2015
Messages
7
Hi there !! :)

Could someone please help me with this.

Say i have two cell

A1 and A4

If a specific condtion is met in A1 { Say if value of a1 =3 } then A4 should freeze and should not exept any value.

Help will be much appreciated. Thank you
 
[*]Can i customize the error message that i get when i try to enter data in freezed cell
[*]also when the cell is freezed based on the condition can i change the cell color to grey

1) Nope
2) When the sheet is unprotected, add Conditional Formatting to color the cell depending on the condition
3) By default all cells on a worksheet are set to Locked, so when the code protects the sheet all locked cells are uneditable. If you want to be able to edit cells, you first need to unlock them. You can do that with Ctrl+A-->Format-->Cells--Protection-->Uncheck Locked.

I didn't use a password to protect the sheet so all you need to do is unprotect it.
 
Upvote 0

Excel Facts

What is the shortcut key for Format Selection?
Ctrl+1 (the number one) will open the Format dialog for whatever is selected.

Forum statistics

Threads
1,216,030
Messages
6,128,407
Members
449,448
Latest member
Andrew Slatter

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