disallow copy and paste

itbman

New Member
Joined
May 29, 2008
Messages
17
is there any way to block users from copying and pasting from my worksheet? Just trying to add a bit of security to my spreadsheet, I think/hope this is the last thing.
 

Excel Facts

Fastest way to copy a worksheet?
Hold down the Ctrl key while dragging tab for Sheet1 to the right. Excel will make a copy of the worksheet.
You could set up a basic table with there ID's and have it only run the disable copy/paste code if there name is not on the list.

ive done this a few times.
 
Upvote 0
You could set up a basic table with there ID's and have it only run the disable copy/paste code if there name is not on the list.

ive done this a few times.

I think a password prompt would be preferable. I'll keep snooping and see what I can do. Any suggestions would be helpful, right now I'm thinking some type of If statement when they right click, prompting for a password.
 
Upvote 0
password option is a good one,

however if you add it to right click would you set it so they have to enter a password each time?

if so something like

Private Sub Workbook_SheetBeforeRightClick(ByVal Sh As Object, ByVal Target As Range, Cancel As Boolean)
Pass = InputBox("Enter Password", "Promt")
If Pass <> "password" Then Cancel = True
End Sub

will work. however unless you hide the menu bar and disable the ctrl+c, ctrl+v etc keys then this will be easy to workaround
 
Upvote 0

Forum statistics

Threads
1,214,528
Messages
6,120,065
Members
448,941
Latest member
AlphaRino

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