Absolute cell references
C++ library for creating XLSX files for MS Excel 2007 and above.
Brought to you by:
oxod,
programmeralex
I propose next modifications:
Also: is it possible to assign "names" for the cells?
Hi,
Thanks for the proposal. Do I understand correctly that this modification for CChart::CellRangeString method?
Please clarify this idea. Do you want to write a value in a cell by its name (for example, "B3")?
This is modification is for making tunable reports. For example, you make a report, where one parameter may be varied for massive range of data. So, you can produce address like $B$5 for cell with this parameter and use it in formulas.
In Excel it is possible to assing name to the cell in special field (see attach.). This is convinuent option to make constants.
Thanks for explanation and example.
I will try to add this feature soon.
I found an error in my previous proposition concerning abs. addresses. This is separated function, look like it works:
I modified your first proposition and left it for now.
In the attachment is an updated version of the library with support for defined names. I would appreciate your testing and comments.
A small example:
Looks like it works.
Thanks!
Thank you again for the idea and testing!
By the way, I reworked the CellCoord::ToString method and now it is up to three times faster than the old version (case with std::string).
Thanks! Nice job!