Ok. So you get the text for the whole page, do replacements in the string and then "copy it" back to word.
But, this looks like it only works when a whole page has the exact same formatting? I have headers and tables etc.
------------------------------
David Fredriksson
------------------------------
Original Message:
Sent: Mon March 21, 2022 04:05 AM
From: Stefan Stefanov
Subject: How to replace/insert text in a word document?
Location for Word files stands for the page that you're applying changes to. In my example it was the first one. If it was for the Excel it would be a cell location. And for the logic of replacing - you could use the "Get office text" followed by "Replace text" commands to replace the placeholders with dynamic variables or constants of your own. After that comes the "Assign value to office" to assign the changed text back to the office file. And don't forget to use the "Save office file" before closing the office file to save the changes applied.
------------------------------
Stefan Stefanov
------------------------------
Original Message:
Sent: Mon March 21, 2022 03:56 AM
From: David Fredriksson
Subject: How to replace/insert text in a word document?
Ok. But what's a "location"? How do replace "{placeholder}" with "information" for instance?
Original Message:
Sent: 3/21/2022 3:18:00 AM
From: Stefan Stefanov
Subject: RE: How to replace/insert text in a word document?
Hello David,
Indeed, use the Assign value to office and for location you specify the page, for example 1.

------------------------------
Stefan Stefanov