How to Merge Multiple Word Files into One

Hi all,

I have a folder with multiple Word documents, and I want to merge them into a single destination file (File1.docx). Each source file (File2.docx, File3.docx, etc.) should be appended on a new page in the destination file.

Thanks!

@parth.modi,

Follow this solution.

1 Like

@parth.modi

there is no direct activity in word for this

you might need to go with writing vba for the same

or less recommended way

cheers

1 Like

Hello @parth.modi

If the document just consists of text:

  1. Create a Final.docx Word Document

  2. Get all words files in directory -

  3. Loop through them

           Read Word File 
           Append to the Text to Final.docx
    

Combination images and text:

  1. Create a Final.pdf Word Document

  2. Get all words files in directory -

  3. Loop through them

           Convert Word File to PDF (Word Activity)
           Append to the current pdf file to Final.pdf (PDF Activity)
    
  4. Convert the File PDF file to Word uisng
    Convert PDF to Word Document - Help / Studio - UiPath Community Forum

Please mark it solution, if it helps. Thanks!

1 Like

This resolves my problem. Thanks!

1 Like

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.