title: How to overcome "object variable or with block variable not set" in excel VBA?
body: <pre><code>Sub bordersTest()
      Dim theRange As Range
  
      theRange = Range(ActiveCell, ActiveCell.End(xlDown).End(xlToRight)).Select
  End Sub
  </code></pre>