Preventing copying/cut from particular protected sheet

Taikoss

New Member
Joined
Mar 7, 2018
Messages
3
Is there any way to prevent users from coping data from protected sheet protected cells? only to allow them to copy information from unlocked cells?

one more question. How to prevent users to paste information outside of active workbook to another excel or program file?
 

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.
Found solution via VBA
this workbook ->
Private Sub Workbook_Deactivate()
Application.CellDragAndDrop = True
End Sub




Private Sub Workbook_SheetSelectionChange(ByVal Sh As Object, ByVal Target As Excel.Range)
'checks any changes made to the sheet and if cut function then stops
Select Case Application.CutCopyMode
Case 2
MsgBox "The 'Cut & Paste' functionality is not available in this file." & vbCr & vbCr & _
"Please use the 'Copy & Paste' funtionality only and manually clear any data that require moving", vbExclamation, "Function Unavailable"
Application.CutCopyMode = False 'clear clipboard and cancel cut
Case Else
End Select
End Sub

but I want to copy/paste unblocked cells info outside of file and it doesn't allow any.
 
Upvote 0

Forum statistics

Threads
1,223,911
Messages
6,175,323
Members
452,635
Latest member
laura12345

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