Click here to Skip to main content
15,887,027 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
Datavalidation is not trigger when copy paste value in drop-down list in Excel created using npoi.

What I have tried:

Added datavalidation and conditional formatting
Posted
Updated 11-Feb-21 20:35pm
Comments
Maciej Los 12-Feb-21 2:11am    
You can't, unless customized Excel add-in is loaded.

1 solution

As i mentioned in the comment to the question, you can't disable "copy-paste" option in Excel application.
You can prevent of copying by using VBA code in Excel add-in. Note, if you "disable" that option, users will go crazy.
If you would like to prevent copying in specific workbook, worksheet, check this: Excel VBA How to detect if something was pasted in a Worksheet - Stack Overflow[^]
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900