access vba - Display Recipient with error when it is in Outlook Distribution List -
i have been handed code generates e-mails attachments , sends them out. code works great except if there problem 1 of recipients in distribution list (dl).
i trying display errant recipient dl user knows needs fixed instead of searching through hundreds of names across several dls.
the following code display name of dl pulled in via .recipients.add not offending recipient name. there way this?
if not objoutlookrecip.resolved each objoutlookrecip in .recipients if not objoutlookrecip.resolved msgbox "address error in dl: " & objoutlookrecip.name end if next end if
Comments
Post a Comment