title: How to capture Excel cell borders properly?
body: <p>I have added a bottom border to a cell (eg <code>A1</code>) using "Format Cells":</p>
  
  <p><img src="https://i.stack.imgur.com/KB7dy.jpg" alt="Shows cell &lt;code&gt;A1&lt;/code&gt; in Excel sheet whose bottom border has been set.">
  [<code>A1</code> has a bottom border, <code>A2</code> has <em><strong>no</strong></em> border.]</p>
  
  <p>If I then programmatically capture the formatting of cell <code>A2</code> <em>the bottom border of cell <code>A1</code></em> is captured as <em>the top border of cell <code>A2</code></em>.  </p>
  
  <p>This is not what happens in native "Format Painter", where copying the format of <code>A2</code> to some other cell does not add any border to that target cell - the behavior I am trying to replicate with code.  </p>
  
  <p>How to achieve this?</p>