Best VBA Alternative to Locking a Worksheet?

Xipha

New Member
Joined
Oct 29, 2013
Messages
16
I have a table which needs to be sorted/filtered and be able to have rows added to it, but the formulas need to be hidden and not editable. I have locked the sheet and right now am running a Protect or Unprotect sub every time one of my other macros is run (which is every time a new row is added or a particular column is changed), and my sheet is starting to get slow to perform simple tasks due to running multiple macros every time the user makes a change. And sorting/Filtering still isn't working properly. Is there a better option out there so that other users can't mess up or steal my formulas (e.g. if they click on one of the formula cells the selected cell automatically goes back to the previous selected cell) but I don't have to protect the sheet and worry about protecting/unprotecting the sheet every time they do something?

Thanks
 

Excel Facts

When did Power Query debut in Excel?
Although it was an add-in in Excel 2010 & Excel 2013, Power Query became a part of Excel in 2016, in Data, Get & Transform Data.

Colo

MrExcel MVP,
Joined
Mar 20, 2002
Messages
1,456
it's just my idea but why don't you make it an addin so that they cannot touch worksheet? ;)
 

Forum statistics

Threads
1,136,257
Messages
5,674,665
Members
419,520
Latest member
Jennifer4Dillon

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