Thanks for your inquiry. Could you please attach your input Word document with MERGEFIELDs along with the target Word document that is showing the desired behavior here for testing. I will investigate as to how you are expecting your final document to be generated like. You can use Microsoft Word to create your target Word document. I will then provide you code to achieve what you’re looking for.