Custom Word Data Merge Script
Budget: $1,500 – $3,000 USD
I need a reliable, repeat-use script that can open a source Word document, locate predefined text sections and any tables that accompany them, and then insert or overwrite that content in matching locations of a target Word file. Standard Mail Merge fails for our layout, so a coded solution is the only path forward.
I am comfortable with either Python or VBA—whichever you feel will deliver the most stable result. If you lean toward Python, think python-docx and, where necessary, win32com for finer control; if you prefer VBA, a well-commented macro embedded in the template is fine.
My main requirement is accuracy: every run of the script must pull the correct sections and tables, keep them intact, and leave everything else in the target untouched. The final deliverable should include:
• The fully-working script (Python file or .dotm with VBA).
• A short README explaining how to set source/target paths and the markers you use to identify the sections to copy.
• Quick instructions on how I can adapt it if new sections need to be merged later.
Once I can execute the script and see the right sections and tables land in the correct spots without manual clean-up, I’ll consider the job complete.
I am comfortable with either Python or VBA—whichever you feel will deliver the most stable result. If you lean toward Python, think python-docx and, where necessary, win32com for finer control; if you prefer VBA, a well-commented macro embedded in the template is fine.
My main requirement is accuracy: every run of the script must pull the correct sections and tables, keep them intact, and leave everything else in the target untouched. The final deliverable should include:
• The fully-working script (Python file or .dotm with VBA).
• A short README explaining how to set source/target paths and the markers you use to identify the sections to copy.
• Quick instructions on how I can adapt it if new sections need to be merged later.
Once I can execute the script and see the right sections and tables land in the correct spots without manual clean-up, I’ll consider the job complete.
Related categories:
Python
Visual Basic
Excel
Software Architecture
Word
Scripting
Automation
Microsoft Word