Beait
1
Hi all,
I have a class that is fecthing data on an excel file.
I’m using the classics SysExcel/application/workbooks/sheets classes to proceed.
I’d like to add border on the cells I am writing in. How can I do that?
Thank you in advance for the help,
Ben
Try this.
SysExcelWorkSheet xlsWorkSheet2;
SysExcelRange xlsRange;
SysExcelStyle xlsStyle;
COM comObject;
void blackBorder(str _range)
{
xlsRange = xlsWorkSheet2.range(_range);
comObject = xlsRange.comObject();
comObject = comObject.borders();
comObject.color(0);
}