Mandatory cell while sheet protected but without macro?

Hai

New Member
Joined
Jun 24, 2008
Messages
15
Hi all,

It sounds very difficult but Is there any way to make some cells mandatory while the sheet and workbook are protected (with password) and even when macro disabled?

Thanks in advance?

Hai
 

Excel Facts

What is the fastest way to copy a formula?
If A2:A50000 contain data. Enter a formula in B2. Select B2. Double-click the Fill Handle and Excel will shoot the formula down to B50000.
Not possible, as far as I know. I really understand, "mandatory" would be - not allowing the user to close the workbook unless he puts an entry in the cell.

You can however use VBA in order to make a cell mandatory in a worksheet. You can add up the code of protecting and unprotecting the worksheet with VBA itself. Nevertheless, with macros disabled, I dont think it is possible to make a cell mandatory.
 
Upvote 0
Stormseed is correct... unfortunately the only option open to you without VBA would be data validation but because data validation only fires on data entry the end user navigating to another cell does not invoke the validation (also the cell would have to be unlocked if the remainder of the sheet were protected) ... if it did fire on selection change (ie moving away from the cell forced entry validation) you could then of course save the file with the required cell activated then regardless of whether or not user enabled VBA they would be stuck on that cell and would have to enter something... sadly can not be done :(

There are posts around here that show ways of handling the possibility of end-users not enabling VBA and how to ensure the file is only ever used with VBA active... you can't force enabled macros but you can pretty much ensure that the user can only use the file if they have enabled macros by ensuring all sheets other than an instructions sheet ("how to enable macros") are xlveryhidden if VBA disabled... else if enabled the instruction sheet is xlveryhidden and the other sheets are all visible -- this IMO is the most common approach to this issue.
 
Upvote 0

Forum statistics

Threads
1,215,012
Messages
6,122,682
Members
449,091
Latest member
peppernaut

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