title: Intermittent VBA Run-Time Error 91 in Excel vba with IE
body: <p>I'm facing Run-Time <code>Error 91</code> intermittently when excel VBA code passes value to IEobject.
  Say for a set of 15 iterations, I'm encountering error for 3-4 times at same place .</p>
  
  <p>Error is not seen, when I manually (F8) run it. I added delays but in vain.</p>
  
  <p>Acct_name field remains greyed out until currency is fed. 
  IE.document.frames("company").document.forms("account").document.all("currency")‌​.Value="USD" IE.document.frames("company").document.forms("account").document.all("currency")‌​.fireevent("onblur")</p>
  
  <p>...delay here </p>
  
  <p>DO while IE.document.frames("company").document.forms("account").document.all.("acct_name‌​").Readystate&lt;>"complete" 'Intermittent run time error 91
   loop</p>
  
  <p>IE.document.frames("company").document.forms("account").document.all("acct_name"‌​).Value= "abc"   'Intermittent run time error 91</p>