Live data from Hacker News

Use Python in Excel without add-ins

xlwings.org

11–20 of 73 posts

Re: Use Python in Excel without add-ins

#13
post #6

This 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.

In LO you cannot define format strings that automagically scale the number, e.g. "d = "0"mm"%%% to use meters for further calculations yet display in mm.

Re: Use Python in Excel without add-ins

#18

So could you do UDFs with this?

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.
Post reply on HN