private void ThisAddIn_Startup(object sender, System.EventArgs e) { #region VSTO generated code this.Application = (Excel.Application)Microsoft.Office.Tools.Excel.ExcelLocale1033Proxy.Wrap(typeof(Excel.Application), this.Application); #endregion this.Application.SheetChange += new Excel.AppEvents_SheetChangeEventHandler(ThisWorkbook_SheetChange); }void ThisWorkbook_SheetChange(object Sh, Excel.Range Target) { MessageBox.Show("Passed"); }
private void ThisAddIn_Startup(object sender, System.EventArgs e) { #region VSTO generated code this.Application = (Excel.Application)Microsoft.Office.Tools.Excel.ExcelLocale1033Proxy.Wrap(typeof(Excel.Application), this.Application); #endregion this.Application.SheetChange += new Excel.AppEvents_SheetChangeEventHandler(ThisWorkbook_SheetChange); }