Share via

Merge another docx into a table in an existing docx

Anonymous
2018-10-26T12:23:07+00:00

Would like to merge another docx into a cell in a table that exists in another Word file.

That is, I have a table in my Word file with 2 cells in landscape mode. On the right half of this page, I have some text. On the left half I need to merge another .docx file.

Any and all help appreciated,

Microsoft 365 and Office | Word | For home | Windows

Locked Question. This question was migrated from the Microsoft Support Community. You can vote on whether it's helpful, but you can't add comments or replies or follow the question.

0 comments No comments

8 answers

Sort by: Most helpful
  1. Anonymous
    2018-10-26T15:31:54+00:00

    Hi Markus,

    If this is to be dynamic, use an INCLUDETEXT field.

    See my IncludeText tutorial here:

    http://www.addbalance.com/word/download/index.h...


    This link is to a page on my website. It is safe. I am providing it because I think it contains information that will help you. However, as an Independent Advisor I am required to add the following when posting here with a link to any non-Microsoft site:


    Note: This is a non-Microsoft website. The page appears to be providing accurate, safe information. Watch out for ads on the site that may advertise products frequently classified as a PUP (Potentially Unwanted Products). Thoroughly research any product advertised on the site before you decide to download and install it.


    If you just want the text and you do not care if the original changes, use copy and paste. If that won't work for some reason, write back.

    I hope this information helps. Please let me know if you have any more questions or require further help.

    Regards

    Was this answer helpful?

    1 person found this answer helpful.
    0 comments No comments
  2. Anonymous
    2018-10-26T18:28:54+00:00

    No. I believe you simply want the mergefield in your Word document. The target file is in a column in your Excel file. The Access file would write "HQ\MergeDocs\MyFile.docx" in the Excel file. The quotation marks are for here, not what goes in the Excel file.

    Was this answer helpful?

    0 comments No comments
  3. Anonymous
    2018-10-26T16:18:05+00:00

    Thanks for this.

    The project includes a .docx file with a table in it.  Information in the cells is obtained from an Excel sheet for the merge.

    Each row in the sheet contains data for the merge, but can also contain a path and name of another .docx file I want to be merged as text into the final mail merge document.

    The includetext field is new to me.  If I understand it:

    • the Excel sheet will contain a column for the includetext which will reference the docx to merge.  This will change in each row in my case.
    • the Excel sheet is being prepared by an Access program which writes in the name of the file in each row
    • would I need the Access program to write into the datasource cell something like: {QUOTE{INCLUDETEXT "H:\MergeDocs\{MERGEFIELD MyFile}.docx"}}  to get the correct docx file for that row?

    Thanks for all your help,

    Mark

    Was this answer helpful?

    0 comments No comments
  4. Anonymous
    2018-10-26T15:46:45+00:00

    Do not use the object, use the includetext field.

    You can use a mergefield for the file to be included. This requires editing the field. Please write back if you do not know how to do this.

    Was this answer helpful?

    0 comments No comments
  5. Anonymous
    2018-10-26T15:39:22+00:00

    Hi Markus,

    If this is to be dynamic, use an INCLUDETEXT field.

    See my IncludeText tutorial here:

    http://www.addbalance.com/word/download/index.h...


    This link is to a page on my website. It is safe. I am providing it because I think it contains information that will help you. However, as an Independent Advisor I am required to add the following when posting here with a link to any non-Microsoft site:


    Note: This is a non-Microsoft website. The page appears to be providing accurate, safe information. Watch out for ads on the site that may advertise products frequently classified as a PUP (Potentially Unwanted Products). Thoroughly research any product advertised on the site before you decide to download and install it.


    If you just want the text and you do not care if the original changes, use copy and paste. If that won't work for some reason, write back.

    I hope this information helps. Please let me know if you have any more questions or require further help.

    Regards

    I actually discovered how to do this using insert-object-text from file.

    Now for the bigger challenge, I need to do this in a mailmerge.  That is, each page of this docx gets info from Excel, which also contains the path and file name of the docx I need to merge.

    Anyone have any help they can give?

    Thanks,

    Mark

    Was this answer helpful?

    0 comments No comments