Replacing Text in Microsoft Word Documents
  • 12 Mar 2021
  • 1 Minute to read
  • Dark
    Light

Replacing Text in Microsoft Word Documents

  • Dark
    Light

Article summary

Example Lab Article
While Example Lab projects are resources for public use, articles and assets are not actively maintained. Screenshots and features are from the specified version below. These references may become dated as new versions are released.


Overview

Example Lab Details

Version6.9.2
Root FolderExample Lab - Replacing Text in Word
Modules None
DependenciesNone

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.

Reference Articles



Project Download

The examples attached were developed to be instructional and were not developed as officially supported components. For more information or to engage our service team to develop fully supported, production quality solutions, please contact services@decisions.com. Import the project below to a Decisions environment on version 6.9.2 or later using our Importing/Exporting article.





Was this article helpful?