Notifications
Announcements
Use "Read from Excel Worksheet" (with first row as header)
Output to emailList (data table)
emailList
For Each item in emailList
Inside the loop:
Launch Word
Open Word Document
Replace Text in Document (e.g., <<Name>> → item["Name"], <<Date>> → etc.)
<<Name>>
item["Name"]
<<Date>>
Save As New File (e.g., C:\Temp\Mail_Merge_${item["Email"]}.docx)
C:\Temp\Mail_Merge_${item["Email"]}.docx
Convert to PDF (Optional for attachment)
OR
Let me know if you want a pre-built VBS script to handle merge fields automatically.
Determine the personalized file path:
attachmentPath = "C:\Temp\Mail_Merge_" + item["Email"] + ".pdf"
Use "Send Email Message (Outlook)" action
item["Email"]
Subject: "Your Personalized Document"
Body: "Hi " + item["Name"] + ", please find attached..."
Attachment: attachmentPath If I have answered your question, please mark it as the preferred solution ✅ . If you like my response, please give it a Thumbs Up 👍. Regards, Riyaz
attachmentPath If I have answered your question, please mark it as the preferred solution ✅ . If you like my response, please give it a Thumbs Up 👍. Regards, Riyaz
Under review
Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.
In our never-ending quest to improve we are simplifying the forum hierarchy…
We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…
These are the community rock stars!
Stay up to date on forum activity by subscribing.
Michael E. Gernaey 501 Super User 2025 Season 2
Tomac 323 Moderator
abm abm 237 Most Valuable Professional