title: BindToMoniker opens a new excel session
body: <p>The following code tries to attach to an excel session that has the C:\test file opened. If such a session doesn't exist, this either returns null or throws an exception.</p>
  
  <pre><code> var myExcelWorkbook = Marshal.BindToMoniker(@"C:\test") as Excel.Workbook;
  </code></pre>
  
  <p>This works very well when the file has no extension. However if I am trying the exact same code with a file that has an extension (for instance C:\test.xlsb), the call tries to open that file with excel before returning. If an instance is already running, it will try to open the file in that instance (as if someone double-clicked on that file in the windows explorer). </p>
  
  <pre><code> var myExcelWorkbook = Marshal.BindToMoniker(@"C:\test.xlsb") as Excel.Workbook;
  </code></pre>
  
  <p>This definitely has to do with the extension (how would BindToMoniker know how to open Excel otherwise?), but is very annoying, since I never want to attach to an existing excel session that doesn't have that file already opened.</p>
  
  <p>Is there a way to disable that "feature"? I would like that the BindToMoniker method never tries to open a file and let me decide what to do in the various cases.</p>