private void ThisAddIn_Startup(object sender, System.EventArgs e) { //Document Explorer--------------------------------------------------------- de = new DocumentExplorer(); ctp = this.CustomTaskPanes.Add(de, "Document Explorer"); ctp.VisibleChanged += new EventHandler(ctp_VisibleChanged); //-------------------------------------------------------------------------- }
private void ThisAddIn_Startup(object sender, System.EventArgs e) { //Document Explorer--------------------------------------------------------- de = new DocumentExplorer(); ctp = this.CustomTaskPanes.Add(de, "Document Explorer"); ctp.VisibleChanged += new EventHandler(ctp_VisibleChanged); Microsoft.Office.Interop.Excel.Application excelApp = Globals.ThisAddIn.Application; //-------------------------------------------------------------------------- }