Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
how to disable copy paste buttons from from edit menu only for a given
workbook? |
#2
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
Not easily. It requires a fair bit of VBA code including event coding and
strong error handling to ensure that the Copy Paste functionallity always gets restored no matter what. Unless you are fairly confident in your VBA I would recomend against it. what might be easier would be to add this code which cancels a copy when the cursor is moved... Private Sub Workbook_SheetActivate(ByVal Sh As Object) Application.CutCopyMode = False End Sub Private Sub Workbook_SheetSelectionChange(ByVal Sh As Object, ByVal Target As Range) Application.CutCopyMode = False End Sub Add this code to ThisWorkbook (Right click the Excel Icon next to File in the Menu and select View Code... Paste the above code.) -- HTH... Jim Thomlinson "excel test" wrote: how to disable copy paste buttons from from edit menu only for a given workbook? |
#3
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
This worked great to disable folks from copying and pasting. But what is the
code to re-enable copy paste and where do I put the code so that I have the ability to re-enable copy and paste. Thanks "Jim Thomlinson" wrote: Not easily. It requires a fair bit of VBA code including event coding and strong error handling to ensure that the Copy Paste functionallity always gets restored no matter what. Unless you are fairly confident in your VBA I would recomend against it. what might be easier would be to add this code which cancels a copy when the cursor is moved... Private Sub Workbook_SheetActivate(ByVal Sh As Object) Application.CutCopyMode = False End Sub Private Sub Workbook_SheetSelectionChange(ByVal Sh As Object, ByVal Target As Range) Application.CutCopyMode = False End Sub Add this code to ThisWorkbook (Right click the Excel Icon next to File in the Menu and select View Code... Paste the above code.) -- HTH... Jim Thomlinson "excel test" wrote: how to disable copy paste buttons from from edit menu only for a given workbook? |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Can't Copy and Paste or Paste Special between Excel Workbooks | Excel Discussion (Misc queries) | |||
Edit Menu will not automatically drop down anymore | Excel Discussion (Misc queries) | |||
Disable Cut & Copy then restore on exiting | Excel Discussion (Misc queries) | |||
copy & paste, a NEW CONCEPT (from Outlook to... Excel) | Excel Discussion (Misc queries) | |||
edit the buttons in right click menu | Excel Worksheet Functions |