title: Workbook open event not firing when opening file from SharePoint on Excel 2010
body: <p>So I got this problem with Excel, that seems to be specific to Excel 2010 only. When I run the file from SharePoint location, no workbook open event fires.</p>
  
  <p>It's an Excel COM add-in and we use <code>Excel.AppEvents_WorkbookOpenEventHandler</code>, that's not being fired when the sheet is opened as it should be.</p>
  
  <p>Is this a known issue and is there any way to work around it?</p>
  
  <p>EDIT:</p>
  
  <p>OK guys, as I stated somewhere in comments, I originally intended only to learn if this is a known issue and what options I had, but since there was a lot of negative feedback for a perfectly legit, short and to the point question, I will now provide all the info requested including my newest findings.</p>
  
  <p>It is not a VSTO add-in, this is a COM add in, and yeah, I have eyes to see if the sheet has been opened in safe mode.</p>
  
  <p>So, I created a small-scale add-in quickly to prove the point, registered it in my registry and tested the <code>OnConnection</code> method when I ran the workbook from my machine. However, when I ran it from the SharePoint server, even <code>OnConnection</code> method didn't get called.</p>
  
  <p>Now our original add-in did get loaded, as it is a 2 part component, which is why I thought just the <code>WorkbookOpen</code> event didn't fire, but it turns out the Excel 2010 is run in some mode that prevents add-ins from running on start-up. Hopefully this clears things up a bit and maybe some of you will have another idea or two.</p>
  
  <p>EDIT 2:</p>
  
  <p>I just realized there was this one guy who downloaded sheet from the internet and thought he was replicating the issue. I was running it from SharePoint, meaning I opened it from its SharePoint location, but easiest way to replicate is this:
  <img src="https://i.stack.imgur.com/Z8M7j.png" alt="enter image description here"></p>