I have developed VSTO add-in for Excel 2010. I want to disable the functionality of dragging of an excel sheet to another workbook.
I tried following Application events for some workaround :
Application_WorkbookActivate
Application_SheetActivate
Application_SheetChange
Application_WorkbookNewSheet
I used these functions for capturing an event when one sheet gets removed from one workbook & created into another workbook. So I was trying in this way to disable the dragging functionality.
I tried one property as well Application.CellDragAndDrop
. But it's only for to disable a cell of a sheet.
I tried some scenarios using ribbon as well but i didn't find any success.
So can anyone tell me how can I disable dragging of an Excel sheet to another workbook.