title: write to xlsm (Excel 2007) using apache poi
body: <p>I have written java file for writing xlsm(Excel 2007).</p>
  
  <p>Using Apache POI Library, Writing xlsx file is success. And Writing xlsm file is success. But I can't open the xlsm file because of error when open xlsm file.</p>
  
  <p>Would it feasible to write xlsm file using Apache POI Library?</p>
  
  <p>If it is feasible to write xlsm, Please kindly provide guide line How to write xlsm file using Apache poi library.</p>
  
  <pre><code>XSSFWorkbook workBook = new XSSFWorkbook();
  XSSFSheet sheet = workBook.createSheet("Related_SRC");
  String realName = "Test.xlsm";
  File file = new File("C:\\sdpApp", realName);
  try {
      FileOutputStream fileOutput = new FileOutputStream(file);
          workBook.write(fileOutput);
          fileOutput.close();
      } catch (Exception e) {
          // TODO: handle exception
          e.printStackTrace();
      }
  </code></pre>
  
  <p>Thanks</p>