Open antoinedeb opened 4 months ago
What's your use case to do this instead of using RunPython
? See https://docs.xlwings.org/en/latest/quickstart.html#macros-call-python-from-excel
I have very big functions with a Gurobi optimization. I need to give several parameters from the excel I have very big functions with a Gurobi optimization. I need to give several parameters from the excel to run the optim, which doesn’t seem possible with RunPython
Please provide (pseudo) code that reflects your actual use case.
OS: Windows 10
Versions: xlwings 0.31.1, Python 3.10
Hello, I have defined a UDF
py_return_df
which works great as an Excel function. However, I want to use it in a VBA code linked to a button. In this case I get error, while it is the same function. Moreover, I managed to use simple UDF in VBA, but the ones returning tables don’t seem to work in VBA.Thanks in advance for your help
Python UDF function
VBA Sub
Error message in Excel