title: VBA - divide value in column
body: <p>as I am a complete newb in VBA, I have a question.</p>
  
  <p>I have a column of integers, which I want to divide by 60. The column is "X". Here's my code:</p>
  
  <pre><code>For Each element In Worksheets("parsed").Range("X1:X" &amp; MaxRows).Cells
      element.Value = element.Value / 60
  Next
  </code></pre>
  
  <p>But I always get "type mismatch". What I am doing wrong?</p>