workheet.change事件在某些时候没有触发。我不知道这背后的原因是什么。
这是我的代码:
case "Briefing":
Worksheet briefingSheet = BerifingSheet.LoadSheet(finalWorkbook.Sheets["Briefing"], loginResult, campaignResult);
//Making briefing sheet active.
briefingSheet.Activate();
Event_CellsChange_brief = new Excel.DocEvents_ChangeEventHandler(BriefingSheet_Change);
briefingSheet.Change += Event_CellsChange_brief;
break;