Allowing input in only one cell

Wismer

Board Regular
Joined
Jun 7, 2006
Messages
51
Hi,

Is there a way where I can protect the full worksheet but allowing only one cell for inputing data?

For Example: user can input Yes in cell B2 while the rest of the worksheet is all protect and does not allow any input.

Thanks
Wismer
 

Excel Facts

Why are there 1,048,576 rows in Excel?
The Excel team increased the size of the grid in 2007. There are 2^20 rows and 2^14 columns for a total of 17 billion cells.
Wismer,

try selecting the cells which should allow input, press Ctrl+1 (format cells) and uncheck "locked" in the protection tab. Then you must protect the worksheet: Tools>Protection>Protect Sheet. Unselect "Select locked cells". Optionally, you can set a password.
 
Upvote 0
Right on. thanks.

Also can I limit the input in that Cell to only Yes? I tried to use data validation after the steps you mentioned but data validation options are grey( not available)

Any advice.

Thanks
Wismer
 
Upvote 0
Schwede's suggestion is probably best, but you could use code.
Code:
Private Sub Worksheet_SelectionChange(ByVal Target As Range)
    If Target.Address <> "$B$2" Then Range("$B$2").Select
End Sub
This would only allow then to select B2

lenze
 
Upvote 0
You have to apply the data validation before you protect the sheet.

Unprotect it and, apply the validation, and reprotect.
 
Upvote 0
You guys are like Hawks.
So quick so accurate...right on.

Great job guys
Keep it up.

Peace Wismer
 
Upvote 0

Forum statistics

Threads
1,203,483
Messages
6,055,663
Members
444,806
Latest member
tofanexcel

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