How does the automation of Excel work on the Mac since there is no COM on mac? Is there some Applescript alternative ?
Use Python in Excel without add-ins
61–70 of 73 posts
Re: Use Python in Excel without add-ins
#62I use it since today, and I'm very impressed. I work for a financial startups, with old fashioned non-tech guys who works only on excel. Xlwings sove me from VBA programmation for my algorithms ...
This may not be an issue where you work, but how do you get away from those who "want to see the formulas" and "want to be able to modify the spreadsheets"?
Re: Use Python in Excel without add-ins
#63This is fantastic - I am going to start testing it now. I write a fair amount of VB macros, and would much prefer to be able to use Python. And, if they could create a plugin that allowed Libre Office to do the same, they could solve one of the last remaining major interoperability issues with LO and Excel: the inability to run VB macros in LO. That would be huge.
LibreOffice has python support http://api.libreoffice.org/examples/examples.html
Re: Use Python in Excel without add-ins
#64I was looking for the 'secret' sauce used to get python being able to interact with Excel: http://showmedo.com/videotutorials/video?name=2190010&fromSe... However, I still haven't looked how the reverse is done (by xlwings.bas in Excel). Is it that XLWings also implments a COM server from which VBA can run Python?
The source is on GitHub... https://github.com/ZoomerAnalytics/xlwings The magic you're looking for is here: https://github.com/ZoomerAnalytics/xlwings/blob/master/xlwin... Surprisingly simple actually.
Re: Use Python in Excel without add-ins
#65How does the automation of Excel work on the Mac since there is no COM on mac? Is there some Applescript alternative ?
[1] https://developer.apple.com/library/mac/documentation/Cocoa/...
Re: Use Python in Excel without add-ins
#66Earlier quoted context omitted.
LibreOffice has python support http://api.libreoffice.org/examples/examples.html
The Python API looks horrible, basically Java code with Python syntax.
It's a shame, having a simple python scripting system built into Calc would be a major advantage.
Re: Use Python in Excel without add-ins
#67Re: Use Python in Excel without add-ins
#68Re: Use Python in Excel without add-ins
#69Earlier quoted context omitted.
No but have a look at https://github.com/ericremoreynolds/excelpython for UDFs.
Cool. The problem with all these big "VBA replacements" (and don't get me wrong, I've done both VBA and VSTO and the latter is more pleasant to work with) is that they never seem to provide replacements for UDFs, which is probably the #1 reason you'd want to use VBA in the first place.
Re: Use Python in Excel without add-ins
#70Xlwings is something I did not know before writing the post, but it does look great and I would love to try it as soon as possible. It basically has all the advantages of Datanitro but it is free.