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

Copy PDF to Excel
Select data in PDF. Paste to Microsoft Word. Copy from Word and paste to Excel.

Egress1

Active Member
Joined
Mar 2, 2003
Messages
420
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.
 

Forum statistics

Threads
1,176,535
Messages
5,903,647
Members
435,041
Latest member
Burleyg

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
Top