Protect cells

MrDoc

Active Member
Joined
Jul 30, 2002
Messages
343
Hi,

Is there a way to protect some cells of a spreadsheet from user input (by typing only), yet letting button controls and VBA macros modify the values of those cells?

I need to prevent users from accidentally deleting formulas or values generated by VBA macros or controls, although they may delete values in some cells.

Thanks for any help.

MrDoc
 
Exactly. Controls are directly linked to cells. So, if they (and the cells) must be unlocked, any user can modify the values in those cells, although the macros would work. Maybe I'll stick to protecting cells containing formulas and leave all other cells unlocked (controls are locked, but that has no effect, as linked cells aren't). At least I would protect the formulas from being deleted...
Thank you very much and, if you have a better idea, help would (again) be much appreciated.
Best Regards,
MrDoc
 
Upvote 0

Excel Facts

Wildcard in VLOOKUP
Use =VLOOKUP("Apple*" to find apple, Apple, or applesauce
You could link all the controls to a cell on a different (very?) hidden worksheet. The hidden worksheet would not need to be protected.
Cells on the protected worksheet could hold formulas that look to the hidden worksheet.
 
Upvote 0
Seems to be a very good idea! I'll try it next, thank you very much!
Best Rgards,
MrDoc
 
Upvote 0

Forum statistics

Threads
1,215,059
Messages
6,122,918
Members
449,094
Latest member
teemeren

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