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.
 

Some videos you may like

Excel Facts

Create a Pivot Table on a Map
If your data has zip codes, postal codes, or city names, select the data and use Insert, 3D Map. (Found to right of chart icons).

Watch MrExcel Video

Forum statistics

Threads
1,128,153
Messages
5,628,997
Members
416,358
Latest member
grsaltzman

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