title: reusing Internet Explorer COM Automation Object
body: <p>I am using VBScript macros to utilize the InternetExplorer.Application COM automation object and I am struggling with reusing an existing instance of this object.</p>
  
  <p>From what I have read, I should be able to use the GetObject() method in vbscript to grab a hold of an existing instance of this object.</p>
  
  <p>When I execute the following code I get an "Object creation failed - moniker syntax error".</p>
  
  <p>Is my issue really syntax? </p>
  
  <p>Is my issue how I am trying to use this object? </p>
  
  <p>or can what I am trying to accomplish just not be done?</p>
  
  <p>Code:</p>
  
  <pre><code>Dim IEObject as object
  
  Sub Main  
    Set IEObject =  GetObject( "InternetExplorer.Application" )
  
    'Set the window visable
    IEObject.Visible = True
  
    'Navigate to www.google.com
    IEObject.Navigate( "www.google.com" )
  End Sub
  </code></pre>
  
  <p>Also, I have no problem running the CreateObject() which opens up a new internet explorer window and navigates where i want to, but i would rather not have the macro open up multiple instances of Internet Explorer.</p>