this example might help... i think there might be a function for merge... basically give the columns u have to merge as a range object and then apply the merge method...
The below example is not exactly the one which willhelp.. but it might give u an idea.....
--Set default for columns F, G and H
args := OLE2.CREATE_ARGLIST;
OLE2.ADD_ARG(args, 'F:H'); --Columns F thru H
column := OLE2.GET_OBJ_PROPERTY(worksheet, 'Columns', args);
OLE2.DESTROY_ARGLIST(args);
font := OLE2.GET_OBJ_PROPERTY(column, 'Font', args);
OLE2.SET_PROPERTY(font, 'Name', 'Courier New');
OLE2.SET_PROPERTY(font, 'Size', 12);
OLE2.SET_PROPERTY(font, 'Strikethrough', 'True');
OLE2.SET_PROPERTY(font, 'Bold', 'True');
OLE2.SET_PROPERTY(font, 'ColorIndex', 5); --Dark Blue
OLE2.RELEASE_OBJ(font);
--Set width for columns F thru H to 25
OLE2.SET_PROPERTY(column, 'ColumnWidth', 25);
OLE2.RELEASE_OBJ(column);
******************NUMBER FORMAT PROPERTY IS VERY IMPORTANT...........*******
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.