title: How to reset variable value to its default value in excel VBA?
body: <p>VBA code</p>
  
  <pre class="lang-vb prettyprint-override"><code>Sub colourcode()
      Dim tcol As Integer, ro As Integer, co As Integer
  
      ro = 2
      co = 2
  
      tcol = 10
  
      For i = 1 To tcol
      Cells(ro, co).Interior.Color = RGB(0, 0, 0)
      ro = ro + 2
       Next
  
  'I want to reset a variable ro value to its default value which is 2.
  
      End Sub
  </code></pre>