Generate MS Word documents in bulk based on an Excel list using Python

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

๐——๐—˜๐—ฆ๐—–๐—ฅ๐—œ๐—ฃ๐—ง๐—œ๐—ข๐—ก
โ–€โ–€โ–€โ–€โ–€โ–€โ–€โ–€โ–€โ–€โ–€โ–€โ–€โ–€โ–€โ–€โ–€โ–€โ–€โ–€โ–€โ–€โ–€โ–€โ–€โ–€
In this video, I am going to show you how to save a lot of time by generating MS Word documents in bulk based on an Excel list using Python. No more copy-pasting, making mistakes and wasting time!

๐ŸŒ ๐—Ÿ๐—œ๐—ก๐—ž๐—ฆ:

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

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

โ˜• ๐—•๐˜‚๐˜† ๐—บ๐—ฒ ๐—ฎ ๐—ฐ๐—ผ๐—ณ๐—ณ๐—ฒ๐—ฒ?
If you want to support this channel, you can buy me a coffee here:
ะ ะตะบะพะผะตะฝะดะฐั†ะธะธ ะฟะพ ั‚ะตะผะต
ะšะพะผะผะตะฝั‚ะฐั€ะธะธ
ะะฒั‚ะพั€

*I will be here in the comments section. If you have any questions, please let me know.*
Quick note: At 06:42 min, the Word document's date is different compared to the Excel screenshot. Reason: I have edited the video a couple of days after the initial recording. When I took the screenshot from the Excel file, I did not adjust the 'today' formula. This is causing the 'difference'.

CodingIsFun
ะะฒั‚ะพั€

As always, you deliver. It's going to save a week for the accountants at my office, and error rate is going to go down drastically, thank you. :)

ermalgashimramori
ะะฒั‚ะพั€

You are the best, man. With your help I managed to solve a big problem in my company even knowing the basics of Python.

viniciusmateus
ะะฒั‚ะพั€

This was so much easier than every other "tutorial" I found out there. Thank you!

lindsayreads
ะะฒั‚ะพั€

How about combining multiple text files together into one, like a table of contents and heading sections all saved as separate files? Part of the goal is to avoid tracking down all the places a boilerplate has been used, versus changing a the boilerplate in a central file and having that update in every file that includes it. The other part is to have more granular version control and to make it easier to handle a document - to just hold a chapter at a time, rather than a whole book.
Cheers, thanks for your thoughts and your videos! Your channel is the most important and valuable to my work. I don't have users looking for me to code apps for them; I just have a ton of "office suite" tasks to achieve, with not enough time, and I hate the idea of wasted time and effort. Thanks again.

bc
ะะฒั‚ะพั€

Hello there. I am from Uzbekistan. Thank you very much. Very helpful video. You saved me a lot of time. Good luck

UmrbekBoymetov
ะะฒั‚ะพั€

This video is awesome. Simple, straight forward and No BS'ing. Thanks a lot and keep up the good work :)

HabibKhan-kjum
ะะฒั‚ะพั€

Hey, thanks for the great video it helped me alot! I have a question regarding strfime(). I want to have alterneting time formats for the same placeholder and want ask if thats possible. So lets say for the first row its (%y %m %d) then for the second row (%d %m %y) and then third row the same as firstโ€ฆ would this be possible? Thanks for any help!

cinberg
ะะฒั‚ะพั€

Awesome! Love your channel and work - thank you!

bc
ะะฒั‚ะพั€

Beautiful. Just beautiful. Python rules for this kind of stuff!

balkanoid
ะะฒั‚ะพั€

Awesome tutorial!
How to make a little tweak to final output, by changing date format from YYYY-MM-DD to DD.MM.YYYY.?

sergejd
ะะฒั‚ะพั€

Great tutorial. Thank you very much.
As for the dates, I noticed the output in the word document is 11-02-2022 and this is different from the dates in the excel file. How can I fix that?

KhalilYasser
ะะฒั‚ะพั€

Thanks and awesome ๐Ÿ™‚What are you doing with base_dir = Path(__file__) command? I get NameError: name '__file__' is not defined...

sapphirewolf
ะะฒั‚ะพั€

Great video, thanks! Can I make the same procedure for excel files? I need to populate excel template not a word one

BriNgHouZ
ะะฒั‚ะพั€

Very useful video. Thank you. How can we transfer data from multiple Excel sheets to a Word file? Do you have a video? I would be very happy if you could help.

ugurcan
ะะฒั‚ะพั€

What interests me most at the moment isย 
1) creating the rubric of a contract for different parties who work together (party, address, executing department, PI, address of the department. The number of parties should be selectable. That means for example: 10 parties in the rubric. I need a GUI where I type in how many parties and give each party various attributes, like the one listed above.
2) creating 1 single page for the signature of 1 party - which consist of the PI and the head of the legal office / chief of (...). That means for example: 10 parties listed above as a head line, 10 signature pages for 20 people.
This process is really exhausting and should not be done manually. Maybe this is easier said than done.
Thanks in advance!

ThePianist
ะะฒั‚ะพั€

Woow! this is amasing
Thanks you for sharing.๐Ÿ’ฏ

tim
ะะฒั‚ะพั€

This is amazing. Thank you so much. YOU are the

iliangeorgiev
ะะฒั‚ะพั€

Very interesting material, thank you โค

kapibara
ะะฒั‚ะพั€

Very interesting. I think I should start learning Python.

Finchman