Change Microsoft Word document mail merge source location for Sharepoint excel file

Anonymous
2018-07-11T21:01:35+00:00

Hello,

I understand there is no practical way to perform a mail merge in Microsoft word by linking to a SharePoint Excel file. There is, however a workaround. I have used this workaround before, but have forgotten how to apply it. Please note, I am not asking for a VBA solution. There is a way to access/open the source code for a word document, to be able to change the file location for mail merge data. I cannot recall how to do this, as to whether it is in Word or via another method.

If anyone has insight into how I can change the file location for mail merge Word documents, by somehow opening the source code of the document, can you please remind me how to do this?  Thank you! Again, this is not a VBA solution, but it does enable Word documents to successfully mail merge Sharepoint stored Excel files.

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
{count} votes

2 answers

Sort by: Most helpful
  1. Anonymous
    2018-07-12T01:01:28+00:00

    Thank you. Unfortunately this is wrong. I stated that I have done this before and it worked. Fortunately I figured it out. This approach successfully mail merges sharepoint files indefiintely. 

    1. Set up a mail merge in the Word document with a local file.
    2. Change the Word document extension to .zip from .doc or .docx
    3. Extract the zip file into a new folder. 
    4. Open the word\settings.xml file or word\settings\settings.xml file in notepad
    5. In notepad, change the merge file source location and name information in both (two) places with the url of the sharepoint source file, and save (example: target=‘file:///c/documents/myfile.xlsx’ to target=‘https://sharepoint/folder/filename.xlsx’)
    6. Repeat 4,5 for the file rels\setttings.xml.rels
    7. Rezip the extracted folder and change the extension back to .doc or .docx OR

    7b. replace the files in the zipped folder and change the extension back to .doc or .docx

    1. Your word document is now successfully mailmerged with a sharepoint source file. And it works perfectly. 

    It’s not ideal. But it’s a work around to Microsoft’s decade of unwillingness to address productivity and collaboratoin needs with its platforms.

    7 people found this answer helpful.
    0 comments No comments