Hi all again.
Here is my code snippet:
fisdoc=new FileInputStream(this.sourceAbsPath);
HSSFWorkbook wb_source = new HSSFWorkbook(fisdoc);
HSSFSheet sheet;
Name name=wb_source.createName();
name.setComment("HERE MIGHT BE YOURS COMMENT");
name.setRefersToFormula("Лист1!$A$1:$A$29");// (Лист1!- Russian variant of
"Sheet1!"
name.setNameName("CREATED_BY_POI");
FileOutputStream fisdoc_out= new FileOutputStream(this.sourceAbsPath);
wb_source.write(fisdoc_out);
fisdoc_out.close();
fisdoc.close();
As result i have same excel file contains named range "CREATED_BY_POI", but
its comments is blank.
--
View this message in context:
http://apache-poi.1045710.n5.nabble.com/Name-setComment-doesnt-work-tp4403029p4403029.html
Sent from the POI - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]