Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 70
Default how do you restrict the users from copying and pasting

I have a file which has Data Validation as list so that the users can only
select from the list for the sake of data integrity.

Some people are copying and pasting the data which replaces the data
validation. I protected the sheet but that doesn't allow me to select any of
the list items. So I unlocked the cells that have data validation. Then
Protected my sheet. That doesn't replace the data validation but it still
allows the user to over write the exisiting entry.

What I really want is that Once the data validation has been set and the
sheet has been protected then I don't want anyone to copy and paste the data
on the cells that contain the data validation.

Some help will be appreciated!!

Kindest Regards

Rajeev Rawat
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1,073
Default how do you restrict the users from copying and pasting

On May 14, 9:37 pm, Raja wrote:
I have a file which has Data Validation as list so that the users can only
select from the list for the sake of data integrity.

Some people are copying and pasting the data which replaces the data
validation. I protected the sheet but that doesn't allow me to select any of
the list items. So I unlocked the cells that have data validation. Then
Protected my sheet. That doesn't replace the data validation but it still
allows the user to over write the exisiting entry.

What I really want is that Once the data validation has been set and the
sheet has been protected then I don't want anyone to copy and paste the data
on the cells that contain the data validation.

Some help will be appreciated!!

Kindest Regards

Rajeev Rawat


One way is to use the worksheet's Selection_Change Event to set the
CutCopyMode of Excel equal to True or False (doesn't matter which)
whenever the validated cells are selected, eg where the validated cell
is A1...

Private Sub Worksheet_SelectionChange(ByVal Target As Range)
If Not Intersect(Target, Range("A1")) Is Nothing Then
Application.CutCopyMode = True
End If
End Sub

This method of course fails should the user choose not to allow macros
when the workbook is opened.

To try this out...

Copy the code, Right click the worksheet tab, choose "View code", then
paste it into the code module, then Alt+F11 to return to Excel.

Ken Johnson
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
Restrict users from changing to certain values in a cell Dolphinv4 Excel Discussion (Misc queries) 0 May 13th 08 11:26 AM
how do i restrict users from changing my formulas Help with formulas Excel Discussion (Misc queries) 2 July 27th 06 10:55 PM
Restrict users from changing password roel1973 Excel Discussion (Misc queries) 3 April 12th 06 05:10 PM
restrict users Restricted user access for exel workbook Excel Worksheet Functions 0 March 15th 06 03:27 PM
Is there any way for me to allow or restrict individual users' ab. hsobah Excel Worksheet Functions 1 January 14th 05 09:26 PM


All times are GMT +1. The time now is 02:46 PM.

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"