Microsoft Office Forums

Go Back   Microsoft Office Forums > >

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #2  
Old 07-25-2015, 12:21 AM
macropod's Avatar
macropod macropod is online now Send Emails from MailMerge in Word using Specified Email Address Windows 7 64bit Send Emails from MailMerge in Word using Specified Email Address Office 2010 32bit
Administrator
 
Join Date: Dec 2010
Location: Canberra, Australia
Posts: 22,516
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'm no Outlook expert, but I think you can do this by declaring a new variable:
x As Long
then inserting:
Code:
'Get the Outlook account to use
With oOutlookApp.Session.Accounts
  For x = 1 To .Count
    If .Item(x).CurrentUser.Name = "Name_of_Account_to_Use" Then Exit For
  Next
End With
before:
' Open the catalog mailmerge document
and changing:
.Send
to:
.SendUsingAccount = oOutlookApp.Session.Accounts.Item(x)
__________________
Cheers,
Paul Edstein
[Fmr MS MVP - Word]
Reply With Quote
 

Tags
email, mailmerge



Similar Threads
Thread Thread Starter Forum Replies Last Post
Macro to send from non-default email address k.n. Mail Merge 5 12-03-2013 03:22 AM
Hyprelinks dropped out of email mailmerge after 500 of 1500 emails sent Hazel Parker Outlook 0 08-19-2012 06:20 PM
Send Emails from MailMerge in Word using Specified Email Address Outllok (2003) Rule to Send a New Email to a New Address upon Receipt of Specific Msg Hendel Outlook 1 10-27-2011 09:22 AM
unable to send test message Please verify the email address field jarv Outlook 0 04-30-2010 07:15 AM
Can't mailmerge emails with outlook & word 2007 chayden Mail Merge 0 01-27-2010 08:19 AM

Other Forums: Access Forums

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


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