Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations John Tel on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

VBA code to specify the FROM address in Outlook

Status
Not open for further replies.

phoenix26

Programmer
Dec 12, 2005
11
US
I have multiple Outlook accounts on my computer. In VBA, if I want to automate a message to be sent via Excel, what is the VBA code to specify the FROM field in the Outlook email message?

I tried objMail.From but it errored out.

Please help. Thank you!!
 

VB Help: objMailItem.SentOnBehalfOfName
Returns the display name for the intended sender of the mail message.

TomCologne
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top