Server statistics in Excel with Python
mit.edu
mit.edu
He seems to be fully uniformed about what he writes about. The graphs he produced in Excel can be produced without Excel and just with open-source tools on practically any platform. Python and Gnuplot can be installed anywhere:
"Python runs on Windows, Linux/Unix, Mac OS X, and has been ported to the Java and .NET virtual machines."
"Gnuplot is a portable command-line driven graphing utility for Linux, OS/2, MS Windows, OSX, VMS, and many other platforms."
But to solve the problem described in the article Excel is just not needed.
Visual Studio had that too until Version 2012. Now MS removed VBA infrastructure from the Visual Studio 2012 -- although since 1998 I was able to assign a keypress to run a Perl code from a VS editor to, for example, modify the selection of a C code I develop (I really use such tricks to do non trivial modifications over some bigger piece of code -- pure magic!) So only now in 2012 they killed that in VS. Stupid MS, destroying the best features they already had.
Hmm, how about JScript? All excel files can be manipulated via COM.
"I did not want my script to require any technical knowledge, so that non-techies (business people, marketing, sales team etc.) could just press a button and see the results of their work"
Most of us in here know the results of this tutorial can be reproduced with one single line in bash and a perl script.
But try telling a non-techie guy to get that command working. If you did set up the environment for them beforehand it's all frosty. But if not... that would require introducing them to the command line, perl or python AND the INSTALLATION of their respective modules needed to work with Excel.
Just to install perl on windows would mean having to send them on an odyssey through: strawberry, activestate, cygwin, etc and then hope for the best when they get to the module installation part.
That IronSpread thing sure is quite interesting. Too bad it is not supported by Excel 2003 (yup, I'm in a legacy box here)
PowerShell?
If you want excel as the front end (I understand why you would want that) you could use pandas to process the data, and use excel as the frontend, instead of writing all that code.
The benefit of having the shell launched from within Excel, with no setup needed, disappear when you want to run more complex functions like continual updates. And on top of that IronSpread doesn't support Office 2003.
As far as interacting with multiple workbooks, that's something we're working on.