title: VB open specific Excel Version when two are installed
body: <p>I am looking at this piece of code that I got from <a href="http://www.autohotkey.com/forum/topic31923.html" rel="nofollow noreferrer">here</a> because I would like to use it.  The issue is, I have used 2003 to create the "test.xls" file but when I run this code it opens in 2007.  Is there any way to force this to open in a specific Excel version rather than the default?</p>
  
  <pre><code>GoSub, GuiOpen
  pweb := COM_AtlAxCreateControl(WinExist(), A_Temp . "\test.xls")
  pxlb := COM_Invoke(pweb, "Document")      ; Excel Workbook
  pxls := COM_Invoke(pxlb, "Worksheets", 1)   ; Excel Worksheet
  Return
  
  GuiOpen:
  Gui, +Resize +LastFound
  Gui, Show, w800 h600 Center, Excel
  COM_AtlAxWinInit()
  Return
  GuiClose:
  Gui, Destroy
  COM_Invoke(pxlb, "Save")
  COM_Release(pxls)
  COM_Release(pxlb)
  COM_Release(pweb)
  COM_AtlAxWinTerm()
  ExitApp
  </code></pre>