Hello
I got empty Excel with Sheet1
I am trying to build range based on notation C1:R1
Using this function :
As pattern I am passsing
following string ‘Sheet1’!C1:R1 and workbook.
Got from range endRow: 1048575
And EndColumn: 16383
For one column such range?
private Range createR1C1PatternBasedRange(Workbook workbook, String R1C1pattern)
{
try
{
int rangeIndex = workbook.getWorksheets().getNames().add(“dummyrange”);
Name name = workbook.getWorksheets().getNames().get(rangeIndex);
name.setR1C1RefersTo(R1C1pattern);
name = workbook.getWorksheets().getNames().get(rangeIndex);
return name.getRange();
}
catch (Exception e) {}
return null;
}