title: Apply style to range of cells - Apache POI
body: <p>I am looking for a solution to apply a style to a range of cells without having to loop on it.</p>
  
  <p>Tried other solutions found here and there on stackoverflow, none of them worked.
  For example, this does not work for me :</p>
  
  <pre><code>CellRangeAddress region = CellRangeAddress.valueOf("A1:B2");
  short borderStyle = CellStyle.BORDER_THIN;
  RegionUtil.setBorderBottom(borderStyle, region, activeSheet, excelWorkbook);
  RegionUtil.setBorderTop(borderStyle, region, activeSheet, excelWorkbook);
  RegionUtil.setBorderLeft(borderStyle, region, activeSheet, excelWorkbook);
  RegionUtil.setBorderRight(borderStyle, region, activeSheet, excelWorkbook);
  </code></pre>
  
  <p>It adds borders on the outer edges of the selection, not to the cells inside.
  I'd like to set a border to each and every cell inside the range. Is that even possible without looping ?</p>
  
  <p>Thanks</p>