int namedCellIdx = wb.getNameIndex("Monat");
 HSSFName namedCell = wb.getNameAt(namedCellIdx);
 String reference = namedCell.getSheetName()+
"!"+"$C$"+dataRowBegin+":"+"$C$"+dataRows;
 namedCell.setReference(reference);

reference  has the value Termin Blank Werte!$C$4:$C$6

The above code snippet gives no error at setReference with POI-3.0.2-FINAL
but i find this method as deprecated
in POI-3.5-beta5 and  get the error Specified named range 'Termin' does not
exist in the current workbook.

Any suggestions on this please

Regards

HR

Reply via email to