title: VBS Object required: '[string: ""]'
body: <p>I have the code</p>
  
  <pre><code>set WshShell = CreateObject("WScript.Shell")
  Set ie = CreateObject("InternetExplorer.Application")
  ie.Offline = True
  ie.Navigate "about:blank"
  ie.Height     = 200
  ie.Width      = 425
  ie.MenuBar    = False
  ie.StatusBar  = False
  ie.AddressBar = False
  ie.Toolbar    = False
  ie.Visible = True
  WshShell.Run "%windir%\notepad.exe"
  WshShell.AppActivate "Notepad"
  WScript.Sleep 3000
  set a = WshShell.SendKeys("a") &amp; Wscript.Sleep("100")
  a
  </code></pre>
  
  <p>It does type "a" in notepad, but then it gives the error," Object Required: '[string: ""]' " and it will prevent any code after it from running.</p>
  
  <p>If anyone knows how to fix this and prevent it in the future that would be great.</p>