Enable copy/paste doesn't copy

teachman

Active Member
Joined
Aug 31, 2011
Messages
321
Hello,

I have a workbook that I have disabled cut/copy/paste by putting the following in the ThisWorkbook module:

Private Sub Workbook_Activate()
Application.CutCopyMode = False
Application.OnKey "^c", ""
Application.CellDragAndDrop = False
End Sub

Along with disabling a few other functions.
However, there is a series of cells on one worksheet that I want the user to be able to copy and paste in another application. So in Sheet5 I put:

Private Sub Worksheet_Activate()
Application.CutCopyMode = True
Application.OnKey "^c", ""
End Sub

The cell in question is unlocked. The worksheet protection allows the user to select unlocked cells. Most of the worksheet is made up of locked cells.

Now I can select the cell and use control c and it acts like the copy has worked. However, when I paste in another application I get whatever I copied prior to copying the cell.

Could someone please explain what I'm doing wrong and point me in the right direction? Also, is there a way, to have the whole sheet disabled for cut/copy/paste but then enable only a few cells?

Thanks,

George
 

Excel Facts

Format cells as currency
Select range and press Ctrl+Shift+4 to format cells as currency. (Shift 4 is the $ sign).

Forum statistics

Threads
1,196,022
Messages
6,012,909
Members
441,741
Latest member
abaz21

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
Top