title: How do I put a border around merged cells in Excel using .Net?
body: <p>How do I apply a border around merged cells? (I don't mind if it is in VB, c#...)
  My code only apply a border around the first cell.</p>
  
  <p>My code:</p>
  
  <pre><code>Range range = sheet.Cells[r,c]; // Select first cell in a group.
  range.Borders = XlLineStyle.xlContinuous;
  </code></pre>
  
  <p>Thank you!</p>