I have created a python script, which I want to run every time a new email arrives in outlook Inbox. So far I have written this VBA code:
Sub test()
Shell "C:\Users\dimitrios\Anaconda3\Scripts\activate.bat & python C:\Users\dimitrios\test\outlookconnnectivity.py"
End Sub
The code calls the outlookConnectivity.py script manually. My problem is how I can do that every time a new email arrives.
I found online some solutions, which i tried, but did not work