how to disable protected sheet cell massage on VBA protect code

Lukma

Board Regular
Joined
Feb 12, 2020
Messages
240
Office Version
  1. 2019
  2. 2016
Platform
  1. Windows
Hi Friends

i have a VBA code to protect my data so that no one will be able to copy or paste or edit whenever i send to someone,
All i need is to view only they wont be able to copy or edit or paste. but i don't wont protected massage to pop up whenever then click or try to copy or edit to show.

Please is there any better VBA solution to protect my data from been copy or paste or edit and that will not pup up warning massage

appreciate if anyone can help out with a better VBA code that can protect my Sheet from been copy or paste or edit and to disable warning massage to make it more nice

thanks
 

Excel Facts

Did you know Excel offers Filter by Selection?
Add the AutoFilter icon to the Quick Access Toolbar. Select a cell containing Apple, click AutoFilter, and you will get all rows with Apple
Can you protect your sheet using the menu option Review/Protect Sheet? Lock the cells you don't want people to copy. Then, protect the sheet and uncheck "Select locked cells". So, people can't select them and, thus, can't copy them. Just remember Excel's protection is weak. It can be easily broken.
 
Upvote 0
thanks but still is there a way to stop massage from pup up like this if there is a solution to disable it will be more helpful



1611202667676.png
 
Upvote 0
I don't see that message on my protected sheets. What is the VBA doing?
 
Upvote 0
thanks but still is there a way to stop massage from pup up like this if there is a solution to disable it will be more helpful



View attachment 30216
There is no easy way.

I remember being able to stop that message but I had to use a windows timer or install a windows hook. However, both methods are better avoided unless absolutely necessary and used only temporarly during code life-time.

I would follow yky advise.
 
Upvote 0
Hi Friends

i have a VBA code to protect my data so that no one will be able to copy or paste or edit whenever i send to someone,
All i need is to view only they wont be able to copy or edit or paste. but i don't wont protected massage to pop up whenever then click or try to copy or edit to show.

Please is there any better VBA solution to protect my data from been copy or paste or edit and that will not pup up warning massage

appreciate if anyone can help out with a better VBA code that can protect my Sheet from been copy or paste or edit and to disable warning massage to make it more nice

thanks
You can just simply uncheck Select Locked Cells when asking for password to protect sheet. This way viewer cannot click the cell and no message :)
 
Upvote 0
You can just simply uncheck Select Locked Cells when asking for password to protect sheet. This way viewer cannot click the cell and no message :)
That's the method I suggested to OP.
 
Upvote 0

Forum statistics

Threads
1,214,523
Messages
6,120,030
Members
448,940
Latest member
mdusw

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