title: Assign the numeric value of a cell to an integer variable
body: <p>I have numeric values on specific cells, the cell's row and column are known. I want to assign the numeric values in these cells to an integer variable in my code that I could then modify and use to update the same cell.</p>
  
  <p>I have tried using the following codes but they did not work because when I add my variables to watch, the value of my variables remained as 0 even the cells have non zero numbers.</p>
  
  <pre><code>    Dim GetTableCount as Integer
  
      GetTableCount = Cells(17, 13).value        
      GetTableCount = CInt(Cells(17, 13).value)  
      GetTableCount = Range(M17)
      GetTableCount = Range(M17).value 
      GetTableCount = CInt(Range(M17).value)
      GetTableCount = CInt(Range(M17))
  </code></pre>
  
  <p>I have also tried using the index function but I failed on looking up the right syntax.
  My last attempt to solve the problem is to specify the cells to "Numbers" format instead of "General" but still nothing.</p>