title: Apache POI lock the cell but allow column resize
body: <p>I create an Excel file through <code>Apache POI XSSF</code> and I lock the sheet with a password so user can't change the value of the first two row and first five columns (I lock the sheet and allowed editing of other cells). All work fine, the only problem is that the user can't resize the column so he can neither change nor resize the columns to read all the cells value.
  Is it possible to allow column resize even if the sheet is protected?
  Thi is my configuration</p>
  
  <pre><code>workbook = new XSSFWorkbook();
  sheet = workbook.createSheet("Sheet1");
  sheet.protectSheet("passwordExcel"); 
  unlockedNumericStyle = workbook.createCellStyle(); 
  unlockedNumericStyle.setLocked(false);
  // Format cell for date
  dateStyle = workbook.createCellStyle();
  CreationHelper createHelper = workbook.getCreationHelper();
  dateStyle.setDataFormat(createHelper.createDataFormat().getFormat("dd/mm/yyyy"));
  sheet.autoSizeColumn(1);
  </code></pre>
  
  <p>I read about <code>lockFormatCell()</code> but I don't understand if it can help me. Thanks</p>