title: VB.Net: All Borders Around Excel Cells
body: <p>I'm attempting to put borders around every cell in a given range. I haven't been able to find a way to do this through research. The only thing i've been able to implement to create a border is the following code: </p>
  
  <p><code>protoWorksheet.Range("A1:K1").BorderAround2(Excel.XlLineStyle.xlContinuous, Excel.XlBorderWeight.xlMedium, Excel.XlColorIndex.xlColorIndexAutomatic, Excel.XlColorIndex.xlColorIndexAutomatic)
  </code></p>
  
  <p>Visual of what I want: <a href="https://i.stack.imgur.com/6k324.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/6k324.jpg" alt="enter image description here"></a></p>