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
Original Message:
Sent: Fri March 18, 2022 12:26 PM
From: David Fredriksson
Subject: How to replace/insert text in a word document?
I have a word template with placeholders. How do replace these with text variables? Or insert text at specific locations. I find "Assign value to office" but can't figure out how to use it. Seems more likes it's for Excel.
------------------------------
David Fredriksson
------------------------------