Member-only story
Automate Filling Templates With Python
Do important work instead of repetitive tasks
Published in
4 min readJun 29, 2022
Introduction
In this article you will learn:
- How to fill in a predefined Word template based on Excel input.
- How to automate this in order to create multiple templates at the same time.
- How you can adapt the template to your specific use case.

This is the first part of the three-part Python series “Build Your Own Application in Python”:
- Automate Filling in Word Templates Using Python
- Create a Graphical User Interface (GUI) using the Tkinter package
- Transform in an .EXE application using the Pyinstaller package

Load The Packages
Get the Data
Save these files to your local folder:
Create The Word Template
The word template defines the input parameters in the following format:
{{PARAMETER}}
It is crucial there are no spaces in your parameters:
- {{Company_Name}} is OK while {{Company Name}} will give errors