title: Invalid Variant Operation error
body: <p>I have an error in my button click, and I can't figure out how to resolve it.</p>
  
  <p>This is my code:</p>
  
  <pre><code>if (ovElements.item(i).name = 'add') and    
  (ovElements.item(i).type = 'button') and    
  (ovElements.item(i).Value = ' + ') then    
  ovElements.item(i).Click;
  </code></pre>
  
  <p>This is the markup:</p>
  
  <pre><code>&lt;td width="20" align="left"&gt;&lt;input class="button" style="width: 30px;" 
   name="add" value=" + " onclick="addLvl();" type="button"&gt;&lt;/td&gt;
  </code></pre>
  
  <p>And it gives this error:</p>
  
  <pre><code>Invalid Variant Operation Error
  </code></pre>
  
  <p>What did I do wrong?</p>