title: VBScript CreateObject Google Chrome
body: <p>I have this VBScript it works fine, no problem with script but I would like to open it in Chrome instead of IE.</p>
  
  <p>I am very very new to VB Scripting.
  Can someone please help me.</p>
  
  <pre><code>WScript.Quit Main
  
  Function Main
    Set IE = WScript.CreateObject("InternetExplorer.Application", "IE_")
    IE.Visible = True
    IE.Navigate "http://gmail.com"
    Wait IE
    With IE.Document
      .getElementByID("login_username").value = "myuser"
      .getElementByID("login_password").value = "mypass"
      .getElementByID("frmLogin").submit
    End With
  End Function
  
  Sub Wait(IE)
    Do
      WScript.Sleep 500
    Loop While IE.ReadyState &lt; 4 And IE.Busy 
    Do
      WScript.Sleep 500
    Loop While IE.ReadyState &lt; 4 And IE.Busy 
  End Sub
  
  Sub IE_OnQuit
    On Error Resume Next
    WScript.StdErr.WriteLine "IE closed before script finished."
    WScript.Quit
  End Sub
  </code></pre>