Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 10-08-2023, 04:54 PM
ma3khans ma3khans is offline Mail Merger Windows 11 Mail Merger Office 2021
Novice
Mail Merger
 
Join Date: Oct 2023
Posts: 2
ma3khans is on a distinguished road
Default Mail Merger

Hello, everyone!



I've been working on replicating the tutorial located at https://www.msofficeforums.com/mail-...-tutorial.html to automate a mail merge process.

I've run into some issues during my attempts. Specifically, I've encountered the following error messages: "No value given for one or more required parameters" and "Word was unable to open the data source. A field calculation error occurred in record 1." For my practice, I've been using files named State_City.xlsx and Test_dir.docx.

Let me provide some background information about my project. I have an Excel sheet with multiple rows, where the primary column is labeled "Document Name." Additionally, there are columns labeled ABCDE, each containing different values. In some cases, for the same "Document Name," there may be varying values in the ABCDE cells. To replicate my data, I've used a file called 01_Test_Excel.xls.

My objective is to generate a mail merge document for each unique "Document Name." Each document should contain a table with headers for the ABCDE cells, and all rows with the same "Document Name" should be consolidated into one document. Each document with a unique "Document Name" should then be saved separately.

While attempting this process, I followed the tutorial mentioned earlier, but I consistently encountered errors during the mail merge execution, as previously mentioned.

I'm reaching out to request assistance from anyone who may be able to help me create a mail merge document for the scenario I've described. Your guidance and expertise would be greatly appreciated! Thanks and looking forward for replies
Attached Files
File Type: xlsx State_City.xlsx (13.0 KB, 3 views)
File Type: docx Test_dir.docx (15.7 KB, 3 views)
File Type: xls 01_Test_Excel.xls (8.3 KB, 3 views)
Reply With Quote
  #2  
Old 10-12-2023, 02:15 AM
gmayor's Avatar
gmayor gmayor is offline Mail Merger Windows 10 Mail Merger Office 2019
Expert
 
Join Date: Aug 2014
Posts: 4,106
gmayor has much to be proud ofgmayor has much to be proud ofgmayor has much to be proud ofgmayor has much to be proud ofgmayor has much to be proud ofgmayor has much to be proud ofgmayor has much to be proud ofgmayor has much to be proud of
Default

See Merge Many To One
__________________
Graham Mayor - MS MVP (Word) (2002-2019)
Visit my web site for more programming tips and ready made processes www.gmayor.com
Reply With Quote
  #3  
Old 10-12-2023, 03:26 AM
ma3khans ma3khans is offline Mail Merger Windows 11 Mail Merger Office 2021
Novice
Mail Merger
 
Join Date: Oct 2023
Posts: 2
ma3khans is on a distinguished road
Default

Hello GMayor,

I would like to express my gratitude for your prompt response to my inquiry and for the valuable suggestions you've provided. I have carefully reviewed the recommendations mentioned in your previous message, which appear to center around the use of a specific add-on to achieve the desired task. Unfortunately, I am not permitted to download and utilize this particular add-on for my application. Therefore, I am in search of a VBA macro code solution for my task. I would greatly appreciate any guidance or suggestions you can offer in this regard.
Reply With Quote
Reply

Tags
ocument



Similar Threads
Thread Thread Starter Forum Replies Last Post
Mail Merger Mail merger when client has multiple entries on data sheet awdl22125 Mail Merge 2 06-21-2022 04:50 PM
Trouble using coding for Macro to join tables from directory merger roadwarrior99 Mail Merge 1 07-24-2021 08:19 PM
Restrict Editing in mail merger swap2688 Mail Merge 0 07-02-2020 07:22 AM
Mail Merger Mail merger with different template/main body text RPM7 Mail Merge 1 04-27-2010 07:20 AM
Error: general mail failure. Quit excel restart mail system MitchellDM Outlook 1 12-19-2008 02:05 AM

Other Forums: Access Forums

All times are GMT -7. The time now is 10:28 AM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.
Search Engine Optimisation provided by DragonByte SEO (Lite) - vBulletin Mods & Addons Copyright © 2024 DragonByte Technologies Ltd.
MSOfficeForums.com is not affiliated with Microsoft