Hello,
I have an excel file that is updated automatically from some websites.
This files contains products prices. I want to send automatically an email when the price drop under a value. Is there a way How to send email using VBA Excel?How to Send Email in Excel Using VBA?
Thanks for your help
Hello,
You need to give access Outlook with VBA, you need to activate the Microsoft Outlook Object Library.
To activate it, go to Tools in the VBA editor > References.
Activate Microsoft Outlook 16.0 Object Library :
Then in a module use this subroutine:
To test the code, call this code using a buton:
Test:
I hope this will help you.
Good luck!
Hello,
I tested it and works fine. But how to adapt the code to send to multiple mail adress?
thank you
Hi
You can use this code to send to many email adress:
You need to have outlook configured and activate Microsoft Outlook 16.0 Object Library in Excel.
Hope this help.