private void ThisAddIn_Startup(object sender, System.EventArgs e) { Instance = this; InitXllAddin(); #if DEBUG var debugFilePath = GetAppLocation() + @"..\..\DebugTest.xlsm"; if (File.Exists(debugFilePath)) Application.Workbooks.Open(debugFilePath); // switch to our ribbon tab Application.SendKeys("%"); Application.SendKeys("AM {ESC}"); #endif }
private void ThisAddIn_Startup(object sender, System.EventArgs e) { Instance = this; InitXllAddin(); #if DEBUG var debugFilePath = GetAppLocation() + @"..\..\DebugTest.xlsm"; if (File.Exists(debugFilePath)) { Application.Workbooks.Open(debugFilePath); } // switch to our ribbon tab Application.SendKeys("%"); Application.SendKeys("AM {ESC}"); #endif }