View Single Post
 
Old 09-06-2023, 07:42 AM
alejandro21805 alejandro21805 is offline Windows 10 Office 2019
Novice
 
Join Date: Sep 2023
Posts: 3
alejandro21805 is on a distinguished road
Default Macro to find a keyword and replace it by inserting the content of another Word document

Hello everyone

I am working on a service portfolio, and I need to insert descriptions of the products I have in other Word documents that are saved in a folder. However, this portfolio changes depending on the type of client. To speed up the work, I have come up with the idea of placing a keyword in the main document (having the same name as the documents with the descriptions I need to insert). Through a macro, the goal is to replace the keyword and insert the content of the product descriptions (insert the Word documents) in its place. Here's a simple example:

01.Apple.Description
04.Orange.Description
10.Pineapple.Description

The keywords would be the names of the documents with the descriptions that I would need to insert. The idea is that the macro searches for the name within the folder and inserts the corresponding Word document into the main document.

Thank you in advance
Reply With Quote