int bottom = spreadsheet.getSelection().getBottom();
Textbox fsaw_filename = (Textbox) Path
.getComponent("//p1/rangeAddWin/raw_rangename");
String name = fsaw_filename.getValue();
Name namevar = book.createName();
namevar.setNameName(name);
namevar.setSheetIndex(sheetindex);
CellRangeAddress cra = new CellRangeAddress(top, bottom, left, right);
namevar.setRefersToFormula(cra.formatAsString());
Window rangeAddWin = (Window) Path.getComponent("//p1/rangeAddWin");
rangeAddWin.detach();
}