macro - data validation on protected cell - allow blank

alexu

New Member
Joined
Aug 7, 2006
Messages
6
I have a tricky question and a large protected worksheet.

Currently users must press a button or double-click to display a userform with names and dump the name to the protected cell.

I would like users to be able to press Delete in the protected cell to delete a name without activating the userform.

I have tried SendKeys to capture the delete stroke but either its not possible or I'm not doing it right.

I tried unprotecting the column and applying data validation (allowing blanks) but am not happy with the solution. is there an alternative?
 

Excel Facts

How to create a cell-sized chart?
Tiny charts, called Sparklines, were added to Excel 2010. Look for Sparklines on the Insert tab.
I have a tricky question and a large protected worksheet.

Currently users must press a button or double-click to display a userform with names and dump the name to the protected cell.

I would like users to be able to press Delete in the protected cell to delete a name without activating the userform.

I have tried SendKeys to capture the delete stroke but either its not possible or I'm not doing it right.

I tried unprotecting the column and applying data validation (allowing blanks) but am not happy with the solution. is there an alternative?

One thought might be to throw an option button from the Control Toolbox on your protected worksheet and assign your unprotect - clear - reprotect macro to it.
 
Upvote 0

Forum statistics

Threads
1,214,786
Messages
6,121,553
Members
449,038
Latest member
Guest1337

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