Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1
Default how to disable copy paste buttons from from edit menu

how to disable copy paste buttons from from edit menu only for a given
workbook?
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 5,939
Default how to disable copy paste buttons from from edit menu

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   Report Post  
Posted to microsoft.public.excel.misc
CSK CSK is offline
external usenet poster
 
Posts: 8
Default how to disable copy paste buttons from from edit menu

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
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Can't Copy and Paste or Paste Special between Excel Workbooks wllee Excel Discussion (Misc queries) 5 April 29th 23 03:43 AM
Edit Menu will not automatically drop down anymore Irene Pai Excel Discussion (Misc queries) 5 May 12th 11 07:43 AM
Disable Cut & Copy then restore on exiting sparx Excel Discussion (Misc queries) 0 April 30th 06 08:43 PM
copy & paste, a NEW CONCEPT (from Outlook to... Excel) Brainless_in_Boston Excel Discussion (Misc queries) 1 February 24th 06 05:39 PM
edit the buttons in right click menu jc_pace Excel Worksheet Functions 1 November 16th 04 06:51 PM


All times are GMT +1. The time now is 05:54 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"