Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 158
Default Preventing cutting/pasting

This code from Elkar when placed in VBE ThisWorkbook seems to do a nice job
preventing a user from cutting/pasting in a workbook. Is there a way I can
modify it for use only on a certain range within one sheet? How about two
non-continguous ranges on the same sheet? TIA

Here is the code from another post (credits to Elkar):

Private Sub Workbook_Activate()
Application.CutCopyMode = None
End Sub

Private Sub Workbook_SheetSelectionChange(ByVal Sh As Object, ByVal Target
As Range)
Application.CutCopyMode = None
End Sub

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
Cutting & pasting from one workbook to another Janelle S[_2_] Excel Discussion (Misc queries) 5 November 1st 08 03:35 AM
Cutting and Pasting with spaces pm Excel Discussion (Misc queries) 1 September 25th 07 08:32 PM
Cutting and Pasting in Excel Rev. Munchkindad Excel Discussion (Misc queries) 19 September 5th 07 08:40 PM
Formats when cutting and pasting Kayle Z Excel Discussion (Misc queries) 1 February 9th 06 03:57 AM
cutting a row and pasting to a column wolfdogg[_2_] Excel Programming 1 August 23rd 05 09:15 PM


All times are GMT +1. The time now is 09:00 PM.

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

About Us

"It's about Microsoft Excel"