Prevent user from making a copy of a sheet.

GeorgeB

Board Regular
Joined
Feb 16, 2002
Messages
239
Good morning all.
Any way to prevent a user from making a copy of a sheet in the same workbook??
 

Excel Facts

How to find 2nd largest value in a column?
MAX finds the largest value. =LARGE(A:A,2) will find the second largest. =SMALL(A:A,3) will find the third smallest
Protecting the workbook (Tools- Protection- Protect Workbook, give password if you want), will prevent them from adding any more sheets to the workbook.

Hope this is what you meant :)
 
Upvote 0
Hmm, the only way I could think of is to add the following code to each of the worksheets you don't want to be copied. It's not very subtle and I'm sure there's a better way of doing it (you can get round the protection by selecting more than one sheet and copying them)-

Private Sub Worksheet_Activate()

ThisWorkbook.Protect "MyPassword"

End Sub

Private Sub Worksheet_Deactivate()

ThisWorkbook.Unprotect "MyPassword"

End Sub
 
Upvote 0
Hi ==

many different options open all have dangers to be got enrn about ands so still copy.

Only real fix i know is:

If people need access your a bit stuck as all can be got around by advanced user.

All that i have found is what i call real lock down,

Auto_Open and remove all the toolbar ie that one that carries copy.

Also the right click copy command need disable. and other bits, so not so simple.

Also i tried to stop copy and name other than the original sheets name so will not acheive anything.

All in all not very satisfactry. But BTW can still send to A and play at home????

HTH


Also before i forget what ever is done in Auto_Open needs to be reversed in Auto_Close else excel might just be that way for lief!
 
Upvote 0
Thanks for your input Mudface and Jack.
I haven't tried your solution Jack but Mudface, your's does work. You are correct, however, about end running around it by grouping two sheets and making copys of both. This works as long as the first sheet in the group is not protected. Must be a better way.
 
Upvote 0

Forum statistics

Threads
1,214,614
Messages
6,120,517
Members
448,968
Latest member
Ajax40

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