Calling python script from excel/vba

后端 未结 6 962
一个人的身影
一个人的身影 2020-11-28 05:48

I have a python code that reads 3 arguments (scalars) and a text files and then returns me a vector of double. I want to write a macro in vba to call this python code and wr

6条回答
  •  情深已故
    2020-11-28 06:44

    Updated 2018

    xlwings is a BSD-licensed Python library that makes it easy to call Python from Excel and vice versa.

    • Scripting: Automate/interact with Excel from Python using a syntax that is close to VBA.
    • Macros: Replace your messy VBA macros with clean and powerful Python code.
    • UDFs: Write User Defined Functions (UDFs) in Python (Windows only).

    • Installation

    • Quickstart

提交回复
热议问题