title: Outline border for a range of cells in exceljs?
body: <p>I come across this use case where I have to give outline borders for a range of cells (Start: A1 to C5 and End: A4 to C5) and I searched google for results but not getting properly. I want an outer border for a particular range and I used the below snippet code but not working</p>
  <pre><code>Code:
  const workbook = new Workbook();    
        const loeTermsandConditionsWorksheet1 = workbook.addWorksheet('(dummy) page',{views:[
          {activeCell: 'A1', showGridLines:true}
          ]})
   //OUTER BRODER STARTS
        const createOuterBorder = (loeTermsandConditionsWorksheet1, start = {row: 1, col: 5}, end = {row: 4, col: 5}, borderWidth = 'medium') =&gt; {
          const borderStyle = {
              style: borderWidth
          };
          for (let i = start.row; i &lt;= end.row; i++) {
              const leftBorderCell = loeTermsandConditionsWorksheet1.getCell(i, start.col);
              const rightBorderCell = loeTermsandConditionsWorksheet1.getCell(i, end.col);
              leftBorderCell.border = {
                  ...leftBorderCell.border,
                  left: borderStyle
              };
              rightBorderCell.border = {
                  ...rightBorderCell.border,
                  right: borderStyle
              };
          }
      
          for (let i = start.col; i &lt;= end.col; i++) {
              const topBorderCell = loeTermsandConditionsWorksheet1.getCell(start.row, i);
              const bottomBorderCell = loeTermsandConditionsWorksheet1.getCell(end.row, i);
              topBorderCell.border = {
                  ...topBorderCell.border,
                  top: borderStyle
              };
              bottomBorderCell.border = {...bottomBorderCell.border, bottom: borderStyle};
          }
        
      };
      
      //OUTER BRODER END
  </code></pre>
  <p>this is what I am expecting:</p>
  <p><a href="https://i.stack.imgur.com/4eJry.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/4eJry.png" alt="Example image " /></a></p>
  <p>but not getting the correct result.</p>