title: Check if Excel workbook is open using VBScript
body: <p>I have a vbs script which writes to an Excel spreadsheet. To be able to save the spreadsheet I need to ensure that it is not already open.<br>
  Can someone suggest the best way to do this?   </p>
  
  <p>Some research:</p>
  
  <ul>
  <li>I tried to create a Word Tasks objects to show me all running processes, but on Windows 7 it only tells me whether Excel is running or not. </li>
  <li>Creating an Excel.Application object does not give me access to all running instances of Excel. </li>
  <li>I thought about opening the spreadsheet for writing but the only way I can think of doing this is with the File System Object OpenTextFile method which does not seem to be the correct approach as the Excel file is a binary.</li>
  </ul>
  
  <p>Any other ideas?</p>