Protect formulas in certain cells w/out using protect sheet due to linked macro

slivesay

Board Regular
Joined
Jan 4, 2019
Messages
64
I have 80+ templates that are use in my department. Each one has cells containing formulas. How can I protect certain cells w formulas from being deleted (deleted by user and by command button). I cannot use the protect sheet method - it will need to be vba and the vba needs to work on it own (no command buttons). One of the formulas is linked to two modules and the protect sheet method throws a error in the formula. This formula and vba attached to it make a barcode (shape) appear for each order number entered. The user keep deleting the formula in error and I'm having to go round and put back in each time. I need a way they cannot delete the formula and the formula still work to make barcode (which is a shape).

Thank you so much.
 
ok maybe the shape is messing with.
Sorry but not sure, hope someone else can help
 
Upvote 0

Excel Facts

Ambidextrous Undo
Undo last command with Ctrl+Z or Alt+Backspace. If you use the Undo icon in the QAT, open the drop-down arrow to undo up to 100 steps.

Forum statistics

Threads
1,214,950
Messages
6,122,436
Members
449,083
Latest member
Ava19

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