I have a py file named test.py, in which I wrote a function called myfunction(). the…
Jump to turn (13)
- 1I have a py file named test.py, in which I wrote a function called myfunction().
- 2Sub test() RunPython ("import test; test.myfunction()") End Sub Are you seriousl
- 3It bumps me an error massage. "编译错误: 子过程或函数未定义"
- 4I have no idea. I had another excel file calling py file correctly. So I don't t
- 5it returns "无效的过程调用或参数"
- 6I tried the test.py file manualy. You are right, it has some bug. please help me
- 7error messgae: Book.caller() must not be called directly. Call through Excel or
- 8now the test file is ready. but when I run the macro "Sub test() Shell "C:\Users
- 9How to run the Python script directly from the command line?
- 10what if the python file is not in the same path of python.exe?
- 11I ran the test.py above. it seems all right. How to run myfunction from the comm
- 12Traceback (most recent call last): File "C:\Users\LIQI\Documents\pythonfiles\xlw
- 13To help further troubleshoot, here are a few potential solutions you can try: Do
- User
I have a py file named test.py, in which I wrote a function called my_function(). the function returns a pandas dataframe. Now I open a xlsm file and want to use macro to call the test.py and run my_function(). Could you help write the vba code for me, thanks.
- Assistant