Password Protection

MattB

Board Regular
Joined
Mar 4, 2002
Messages
63
Even if I password protect a sheet it is possible to copy the complete sheet and paste it into a new sheet.
Is it possible to stop this?
 

Excel Facts

Back into an answer in Excel
Use Data, What-If Analysis, Goal Seek to find the correct input cell value to reach a desired result
Yes, you can copy the worksheet. The protection will be copied to. As far as I know there is not a way to prevent copying.
 
Upvote 0
Wait A sec. Go to tools, protection then choose protect workbook. That will keep any Worksheets in the Workbook from being copied.
Also if a worksheet is protected and copied to another location even in another workbook the protection is copied also.
This message was edited by Sam W on 2002-03-05 06:45
 
Upvote 0
You can also format the cells to "hide" formulas. If the protected sheet is copied, I don't think the hidden formulas will paste. Just the values.
 
Upvote 0
Hi there friend :wink:

Try this code in your module,alter it if you must to fit your needs

Sub myUnLock()
'This code will unprotect the sheet.
Application.EnableEvents = False
Application.DisplayAlerts = False
ActiveSheet.Unprotect ("admin")

'Add optional code here!

Application.EnableEvents = True
Application.DisplayAlerts = True

End Sub

;-b
 
Upvote 0

Forum statistics

Threads
1,214,577
Messages
6,120,359
Members
448,956
Latest member
Adamsxl

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