How to disable cut,copy and paste option in excel using c#?

Feb 10 2015 5:50 PM

I have tried the code shown below to disable cut,copy and paste option in excel using c#, but still I'm able to copy and paste.

Microsoft.Office.Interop.Excel.Worksheet wks = (Microsoft.Office.Interop.Excel.Worksheet)wkb.Sheets[1]; 
wks.Application.CutCopyMode = (Microsoft.Office.Interop.Excel.XlCutCopyMode)0;
 Any suggestions how to fix this problem?

Answers (1)