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.
Code
Microsoft.Office.Interop.Excel.Worksheet wks = (Microsoft.Office.Interop.Excel.Worksheet)wkb.Sheets[1];Code
wks.Application.CutCopyMode = (Microsoft.Office.Interop.Excel.XlCutCopyMode)0;
1 short reply
Vithal WadjeRank #19 · 47.2K pointsPosted Apr 2, 2015, 12:32 PM EDT