I have a large Excel/vba workbook (~70 sheets, most of them data tables computing loads of values) that will need converting into an actual language, so it can be packaged as a web application. Some of the logic is in VBA, however most of it is actually in Excel cells/formulas/tables.
It feels large enough to consider a programmatic approach to this. So I have been looking at Pyxll. What I have in mind is along the following lines:
- Write a python/pyxll script that will convert sheets/tables into classes
- For each of those tables, columns would become either other classes and/or attributes
- The formulas in the cell would be extracted, named ranges would be converted to variables etc.
- Write out the python files based on this processing.
- Manual editing/code writing to make the skeleton created actually work as per the original Excel program.
This seems like a viable approach, given that pyxll claims to be able to fully interact with the workbook and to be able to do pretty much anything that VBA can do. However the docs/use case seem to be mostly explained in terms of going the other way around (e.g. implement stuff in python that can be called within Excel).
Any pyxll power-use out there? Is the plan outlined above realistic, or am I more likely to have an easier time just re-writing everything from scratch?