title: InternetExplorer SendKeys executing in VBA
body: <p>I have to press some keys on an IE page. Sometimes it works fine and sometimes no.</p>
  
  <p>When I run the code step by step with F8 they always get pressed in the VBA window.
  When I run the tool with F5 they sometimes get pressed in IE, where I need them, and sometimes in VBA. What can I do to prevent this? </p>
  
  <p>Here is part of the code:</p>
  
  <pre><code>Set Elements = IEDoc.getElementsByClassName("REQ")(0)
  Elements.Value = 10001
  Set objWSS = CreateObject("WScript.Shell")
  Elements.Focus
  objWSS.SendKeys "^{TAB}"
  objWSS.SendKeys ("{DOWN}")
  objWSS.SendKeys ("{TAB}{RIGHT}")
  </code></pre>