Just as the title goes.
I have a python program which processes some data file I downloaded from email.
I am writing a vba script which can download the email attachments and execute the python program to process the email attachments, such that I can automate my daily job.
Any idea?
One way to do that is to turn your Python code into a COM Server and then access it like any other COM object. This chapter from Python Programming on Win32 shows how simple it can be. The rest of the chapter gets into a lot of technical details that are probably not necessary for your application. Just turn your Python code into a class, expose one method for the VBA to call it, and that should do the trick.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With