Use Word Application Scope in UiPath to open both the template and target .doc files, copy the “OBSOLETE” textbox/shape from the template, paste it at a fixed bookmark/location, update the dynamic values, and save the file.
For better stability in bulk processing, use Word COM/Invoke VBA, disable Word alerts, and preferably convert .doc to .docx during processing.
Use Replace Text / Replace Image / Bookmark activities to add the stamp dynamically
Example:
Directory.GetFiles("FolderPath","*.docx")
This is easier and more scalable when working with multiple documents.
Advice : Try creating a fresh copy of the template each iteration to avoid overwriting the original template:
You may also consider using bookmarks/placeholders for exact stamp positioning instead of relying only on coordinates/manual placement.
Copying a textbox/shape from one Word file to another is possible, but it’s not very stable in UiPath, especially with old .doc files. A simpler and more reliable approach is to save your stamp as an image and insert it into each document using the Insert Picture activity, then update the dynamic values using Find & Replace. If you strictly need the exact textbox formatting, then you’ll have to use Invoke VBA to copy and paste the shape, but that is a bit complex. For better stability, it’s also a good idea to convert .doc files to .docx before processing.