title: Type mismatch error (vba)
body: <p>I get  Type mismatch error in the last line of this part of code:</p>
  
  <pre><code>Dim test As Object
  Set test = Mid(Trim(row.Cells(1, 19).Value), 9, 1) Mod 2
  </code></pre>
  
  <p>How can I resolve it?</p>