Protecting work

chef

Well-known Member
Joined
Jul 10, 2002
Messages
610
Office Version
  1. 365
  2. 2016
I am hoping someone can point me in the right direction.

I have some simple code that I got help from here and it allows a user to click on a cell then it activates another sheet.
How do I stop anyone from right clicking on tab and looking//amending code.

I would also like to stop anyone being able to cut and paste my worksheet and re manipulating in manner not intended.

Also to stop them inserting rows/columns.

can you disable cut and paste and disable right click on tabs to view code?

any help appreciate and hope some of this is possible
regards
ian
 

Excel Facts

Best way to learn Power Query?
Read M is for (Data) Monkey book by Ken Puls and Miguel Escobar. It is the complete guide to Power Query.
You can lock the VBA project by going to. VB Editor >> Tools >> VBAProject Properties >> Protection then check the lock project for viewing box and enter a password.

To disable cut, copy & paste try this link

VBA Express : Excel - Disable Cut, Copy, Paste

Note: protection in Excel isn't particularly secure, it should really only be used to remind people to please don't do an action or it might break your project.
 
Upvote 0
hi there,
many thanks for quick response and reply.
this is really helpful and although aware not 100% secure, this will help.
have a great weekend
ian
 
Upvote 0

Forum statistics

Threads
1,224,822
Messages
6,181,165
Members
453,021
Latest member
Justyna P

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