I agree that Excel as a GUI can be phenomenal.
Being able to steadily enhance a spreadsheet into a real application without rewriting from scratch could be a real game changer.
I do remember defining a specific format for a cover page: merging a large block of cells and customizing the font information within. I suspect I had other formatting convenience functions to make the reports more consistent.
I created a single data structure to wrap the workbook and worksheet objects and include a "current" row/cell tracker, so that I could invoke an "add row" function to write the next row in the sheet without indicating where in the worksheet the data should be added.
Each write function would then take as arguments the data structure and a string label to indicate which worksheet I wanted (numeric indexing was also an option, but I found strings to be the best way to make the code obvious about what worksheet we were actively modifying).
I also did some work with tagged data (via tuples) so my library could choose which write function to invoke in xlsxwriter. I don't remember the motivation for that.
I’ve used it at work some years ago, and it’s a great product.
:)
I rarely want to access Python from my Excel. I quite often want to access Excel from my Python.
A spreadsheet is a great GUI for a lot of things. A lot of people are employed creating "shitty version of Excel but can be driven from any of <web, desktop, application, websockets, WASM, etc.>"
Being able to easily drive Excel from an external Python program would make for a nice cross-platform application substrate.