12-16-2014 11:40 AM
Hi,
I am using OLE to create an Excel file, and I want to be able to set a background color of a cell. This is the code that I use to achieve this:
call method of cell_obj 'INTERIOR' = shading_obj.
set property of shading_obj 'ColorIndex' = color.
Color here is an integer from 1 to 56 that identifies some color available in Excel. I got all the color values from this link: http://dmcritchie.mvps.org/excel/colors.htm
Is it possible to choose a color that is not among these 56 colors? Maybe a color identified by hex or some RGB value?
Also, how can I create a border around some range of cells in Excel file?
12-16-2014 1:23 PM
12-16-2014 1:23 PM