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

Can you AutoAverage in Excel?
There is a drop-down next to the AutoSum symbol. Open the drop-down to choose AVERAGE, COUNT, MAX, or MIN
it's just my idea but why don't you make it an addin so that they cannot touch worksheet? ;)
 
Upvote 0

Forum statistics

Threads
1,214,601
Messages
6,120,465
Members
448,965
Latest member
grijken

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