Application app = null;private void ThisAddIn_Startup(object sender, EventArgs e){app = Globals.ThisAddIn.Application;
//禁止弹框会导致关闭excel没有提示所以要设置为true
app.DisplayAlerts = false;
}
Application app = null;private void ThisAddIn_Startup(object sender, EventArgs e){app = Globals.ThisAddIn.Application;
//禁止弹框会导致关闭excel没有提示所以要设置为true
app.DisplayAlerts = false;
}