Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 06-04-2021, 07:42 AM
JamesWood JamesWood is offline Mail merge macro that considers edited recipient list? Windows 10 Mail merge macro that considers edited recipient list? Office 2019
Advanced Beginner
Mail merge macro that considers edited recipient list?
 
Join Date: Nov 2020
Posts: 37
JamesWood is on a distinguished road
Question Mail merge macro that considers edited recipient list?

Hi guys




Just wondering how you would tackle a Word mail merge macro that takes into consideration if the 'Edit Recipient List' has some unticked recipients?


For recordNumber = 1 To totalRecord

With myMerge.DataSource
.ActiveRecord = recordNumber: .FirstRecord = recordNumber: .lastRecord = recordNumber
End With


Not sure how to get it to recognise if any recipients have been unticked, as the above code (just an excerpt of course) would obviously just process ALL the recipients.


Thanks a lot!
James
Reply With Quote
  #2  
Old 06-04-2021, 03:46 PM
macropod's Avatar
macropod macropod is offline Mail merge macro that considers edited recipient list? Windows 10 Mail merge macro that considers edited recipient list? Office 2016
Administrator
 
Join Date: Dec 2010
Location: Canberra, Australia
Posts: 21,962
macropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond repute
Default

I guess the questions here are:
1. why are you looping through the records?; and
2. what is your SQL statement?
__________________
Cheers,
Paul Edstein
[Fmr MS MVP - Word]
Reply With Quote
  #3  
Old 06-05-2021, 12:58 AM
JamesWood JamesWood is offline Mail merge macro that considers edited recipient list? Windows 10 Mail merge macro that considers edited recipient list? Office 2019
Advanced Beginner
Mail merge macro that considers edited recipient list?
 
Join Date: Nov 2020
Posts: 37
JamesWood is on a distinguished road
Unhappy

Quote:
Originally Posted by macropod View Post
I guess the questions here are:
1. why are you looping through the records?; and
2. what is your SQL statement?


I guess I've not got that far yet. I'm just wondering that if you (or anyone) were writing a basic mail merge macro, how would you get it to notice if you had unticked records in the recipient list? This side of things is new to me, so be gentle!
Reply With Quote
  #4  
Old 06-05-2021, 03:06 PM
macropod's Avatar
macropod macropod is offline Mail merge macro that considers edited recipient list? Windows 10 Mail merge macro that considers edited recipient list? Office 2016
Administrator
 
Join Date: Dec 2010
Location: Canberra, Australia
Posts: 21,962
macropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond repute
Default

For a basic mailmerge macro that would honor your record selection, see the first macro in the Mailmerge Tips & Tricks 'Sticky' thread:
https://www.msofficeforums.com/mail-...ps-tricks.html
__________________
Cheers,
Paul Edstein
[Fmr MS MVP - Word]
Reply With Quote
  #5  
Old 06-06-2021, 03:13 PM
JamesWood JamesWood is offline Mail merge macro that considers edited recipient list? Windows 10 Mail merge macro that considers edited recipient list? Office 2019
Advanced Beginner
Mail merge macro that considers edited recipient list?
 
Join Date: Nov 2020
Posts: 37
JamesWood is on a distinguished road
Default

Quote:
Originally Posted by macropod View Post
For a basic mailmerge macro that would honor your record selection, see the first macro in the Mailmerge Tips & Tricks 'Sticky' thread:
https://www.msofficeforums.com/mail-...ps-tricks.html


Wow thank you!
Reply With Quote
Reply

Thread Tools
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
Mail merge macro that considers edited recipient list? Edit mailmerge recipient list using a macro hhorber Mail Merge 0 12-17-2019 11:48 AM
Mail merge macro that considers edited recipient list? Mail Merge using edit recipient list option not working properly Dsr122076 Mail Merge 1 12-03-2015 04:19 PM
Mail merge macro that considers edited recipient list? Creating recipient list for mail-merge Roger Keeling Mail Merge 2 05-23-2015 04:34 AM
Editing recipient list in mail merge from word 2007 not working dlaslett Mail Merge 4 03-16-2015 02:02 AM
Mail merge macro that considers edited recipient list? Edit mail merge recipient list Freddies_grandad Mail Merge 7 12-10-2012 11:05 PM

Other Forums: Access Forums

All times are GMT -7. The time now is 09:34 PM.


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