title: Excel AddIn with custom context menu that worked well in 2010+Win7 doesn't work in 2013+Win10
body: <p>Long time ago I made small AddIn for Excel to upload small trunks off data to SQL server. Quite simple form is called from context menu on right btn mouse click. It worked well on Win7 + Excel 2010 (don't know if OS is important). Recently I moved to Win10 + Excel 2013. And the context menu won't show up anymore... Well actually I can make it show but only once. My ThisAddIn_Startup</p>
  
  <pre><code>    private void ThisAddIn_Startup(object sender, EventArgs e)
      {
          logger.Info("Started");
          CreateContextMenu();
          Application.SheetBeforeRightClick += Application_SheetBeforeRightClick; 
      }
  </code></pre>
  
  <p>And here's CreateContextMenu</p>
  
  <pre><code>    private void CreateContextMenu()
      {
          try
          {
              Office.MsoControlType menuItem = Office.MsoControlType.msoControlButton;
              uploadToDatabase = (Office.CommandBarButton)Application.CommandBars["Cell"].
                  Controls.Add(menuItem, missing, missing, 1, true);
              uploadToDatabase.Style = Office.MsoButtonStyle.msoButtonCaption;
              uploadToDatabase.Caption = "Upload to database";
              uploadToDatabase.Tag = "0";
  
              //MessageBox.Show("MF");
              logger.Info("Added context menu");
          }
          catch (Exception ex)
          {
              logger.Error(ex);
          }
      }
  </code></pre>
  
  <p>In log file I see both records - "Started" and "Added context menu", but context menu is still not customized.
  But if I uncomment the line <code>MessageBox.Show("MF");</code> then it will show up for the first start of excel and then again dissappear if I close a workbook and open any other.</p>
  
  <p>Does anyone have an idea why?</p>
  
  <p>Appreciate for any hints.</p>