What I need is fast worksheet update, by C++ program. The problem is that I want to update background of cells.
There is examples in the net, for value setting as array. In my case, solution is:
Well I have found close solution:
1) create array of 56 strings, since there is only 56 ColorIndex values.
2) fill 56 strings with areas i.e. "A1:B2,C3:D4"
3) in cycle do
This gives disadvantages
1) I can't use random colors (0xBBGGRR, for RangeOfCells->Interior->Color),
2) I have to manage areas manually.
3) 56 ColorIndex set's processing about 1..2 seconds so I can't slow it any more :(
4) Size for "myAreaArray[i]" is limited to 256 characters!
Can I just be TFG for a second and suggest that VBScript is going to be a much faster\easier option for you. I'm glad that you found something that works but I agree with freddie1 that the entire MS Office API needs to be torn down and thrown out for a fresh start.
Well, I can't... I'm using Excel as visualization for MySQL database data. I can't use my own interface, because all users in company is familiar to Excel and want to continue use it. It would take a lot of time to create similar interface as in Excel. I don't know about OpenOffice or LibreOffice. Suppose both has similar problems.