Create and Distribute Excel Files using Python and Outlook | Automate Excel with Python

preview_player
ะŸะพะบะฐะทะฐั‚ัŒ ะพะฟะธัะฐะฝะธะต

๐——๐—˜๐—ฆ๐—–๐—ฅ๐—œ๐—ฃ๐—ง๐—œ๐—ข๐—ก
โ–€โ–€โ–€โ–€โ–€โ–€โ–€โ–€โ–€โ–€โ–€โ–€โ–€โ–€โ–€โ–€โ–€โ–€โ–€โ–€โ–€โ–€โ–€โ–€โ–€โ–€
In this video, I will demonstrate how you can use Python (Pandas) to automate the creation of Excel files, which you can then distribute via email to a list of contacts. To send out the emails, we are going to use the Desktop application of Microsoft Outlook.

๐—ง๐—ข๐—ข๐—Ÿ๐—ฆ ๐—”๐—ก๐—— ๐—ฅ๐—˜๐—ฆ๐—ข๐—จ๐—ฅ๐—–๐—˜๐—ฆ
โ–€โ–€โ–€โ–€โ–€โ–€โ–€โ–€โ–€โ–€โ–€โ–€โ–€โ–€โ–€โ–€โ–€โ–€โ–€โ–€โ–€โ–€โ–€โ–€โ–€โ–€

๐—–๐—ข๐—ก๐—ก๐—˜๐—–๐—ง ๐—ช๐—œ๐—ง๐—› ๐— ๐—˜
โ–€โ–€โ–€โ–€โ–€โ–€โ–€โ–€โ–€โ–€โ–€โ–€โ–€โ–€โ–€โ–€โ–€โ–€โ–€โ–€โ–€โ–€โ–€โ–€โ–€โ–€

โ˜• ๐—•๐˜‚๐˜† ๐—บ๐—ฒ ๐—ฎ ๐—ฐ๐—ผ๐—ณ๐—ณ๐—ฒ๐—ฒ?
ะ ะตะบะพะผะตะฝะดะฐั†ะธะธ ะฟะพ ั‚ะตะผะต
ะšะพะผะผะตะฝั‚ะฐั€ะธะธ
ะะฒั‚ะพั€

*If you have any questions or want to see more excel automation examples using Python, let me know in the comments.*

CodingIsFun
ะะฒั‚ะพั€

I love how you get ahead of people's questions by showing solutions to problems/complications that people may experience. You're once step ahead. Awesome stuff!

marco_rock_s
ะะฒั‚ะพั€

It's always a pleasure seeing you up the level of the content, please keep up the good work. Time spent watching your videos is quality time, thank you!

ermalgashimramori
ะะฒั‚ะพั€

OMG I love your videos! Using coding to solve little tasks like this is *exactly* the kind of thing I aspire to, and perfect for my needs and interests. Thank you!

bc
ะะฒั‚ะพั€

As always Sven, real worthwhile content. Keep up the good work!! You are a rockstar

rajeevmenon
ะะฒั‚ะพั€

Thank you. You deserve a million subscribers.

thamilanban
ะะฒั‚ะพั€

Great tutorial! That was very helpful! Thank you for sharing!

ryanbuzar
ะะฒั‚ะพั€

This worked as smooth as it was supposed to be. I love your way to explaining the code line by line. It was a use_case for me, and I am glad to say that you are a life saver. This is fantastic! ๐Ÿ˜Š๐Ÿ˜Š

ahmedsalman
ะะฒั‚ะพั€

Great video! I could see myself creating something like this.

datalyticsbootcamp
ะะฒั‚ะพั€

Thank you so much for this incredible video. This was the first video I saw that didn't need to add passwords and settings. Fits perfectly.
I would like to know if you have any videos that I can watch that help me create a logic that changes the content of mail.HTMLBody according to values found in the csv that we export. Example, if Value is greater than 60, it shows one content, if it is smaller, another. If zero, a specific...
Have a great week and thanks again!

maevabj
ะะฒั‚ะพั€

Hi Sven! It's admirable how you manage to display your work in just 7 minutes and make it so enjoyable!
I got one question: As you work with win32 here (which works with win64 according to another comment of you): Does it also work on the Outlook version of *APPLE*? What's the prerequisite for implementing this? Do you have to download the desktop version of Outlook for this? Glad if you you could add some Know-how on this. Thanks a lot and keep it on. It's a great joy to check out your great progress!

AbCdEf-vhjj
ะะฒั‚ะพั€

Thanks @CodingIsFun, very informative. Are you able to provide a video for the same exact steps but using VBA to execute this process pls? Much appreciated!

bottega
ะะฒั‚ะพั€

This is helpful and wished i had seen this earlier! New subscriber alert.

Question please: what if the master file has two tabs and you want to pull from the two tabs into two tabs in the individual files

mariamazeez
ะะฒั‚ะพั€

@Coding Is fun, thank you this is very helpful ๐Ÿ™ ๐Ÿ”ฅ
what if I want to attach multiples files to one or more receivers instead of one attach per receivers. does this method still work ?, should I create as much column in my Excel file (source), as I have files to attach ?

Thank you very much !

gomesarmando
ะะฒั‚ะพั€

Thank you!, this tutorial is really useful.
Sven, how We can insert an image of a chart to the body mail?

sinnombre
ะะฒั‚ะพั€

Hi there, Cant this be done without the attachment approach? What if I wish to paste the contents of the excel per unique email IDs in the body?

chayan
ะะฒั‚ะพั€

I am really enjoying and learning a lot from your videos. I have a question regarding the outlook mailing list. How you can add a different signature for instance each country email? ๐Ÿ˜Š

mrx
ะะฒั‚ะพั€

Is it possible to do this with each excel having a column which includes a drop down list to select an option (data validation) ?

Bzman
ะะฒั‚ะพั€

Thank you so much for the brief explanations. Is there any other option other than outlook to send email?.. If yes, could you please help with that which will be much helpful.

cvas-d
ะะฒั‚ะพั€

Cool video. Would like to see how you could password protect the files before sending.

Chrisfagan