Dear @Jason Liu,
Good day to you and thanks for your post in Microsoft Q&A. I'm sorry for the inconvenience you've encountered. To better assist you, could you please provide more details such as:
- What type of your account do you use? Personal or created by organization - school/company?
- Would you mind sharing me a screenshot of your issue? Besides that, would you mind giving me a detail of your code?
- What version do you use?
Regarding your description, I tried to create a simple VBA to call a python script and have some tips that you can consider:
- It needs to have a full path to python.exe. Example: C:\Python312\python.exe not just a python
- Same as the python script.
- I would like to attach an article on Stack Overflow relate to your issue. https://stackoverflow.com/questions/18135551/how-can-i-call-a-python-script-on-excel-vba
Once again, I sincerely apologize for the unpleasant experience. I look forward to your information and if you have any questions, please feel free to reach out to me - I’ll be happy to assist you. Wishing you a wonderful day.
If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.