- 12 Mar 2021
- 1 Minute to read
- Print
- DarkLight
Replacing Text in Microsoft Word Documents
- Updated on 12 Mar 2021
- 1 Minute to read
- Print
- DarkLight
Overview
Example Lab Details | |
Version | 6.9.2 |
Root Folder | Example Lab - Replacing Text in Word |
Modules | None |
Dependencies | None |
This Example Lab project demonstrates how to replace specific text with user input in a Microsoft Word document.
Explanation
The example project works by using the Replace Text In Word Document step. This step requires the inputs of the original Word document, what text is already in the Word document that is going to be replaced, and What text to replace that text with. In this example the user will essentially be completing some premade sentences with single words, and writing some random text for the bottom of the page.
These inputs are collected using a Form, The user will input what text should be inserted into the document in each Form component and that data will be passed into the Replace Text in Word Document step. Upon completion of the Replace Text in Word Document step a new Word file will have been created and output. This file is then passed into a Form where the user may click the "Download File" button to download and view the newly edited Word document.