Ejemplo n.º 1
0
        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

        }
Ejemplo n.º 2
0
        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
        }