Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
tod tod is offline
external usenet poster
 
Posts: 114
Default Alias FROM: when sending mail in Excel

The user wants to send a portion of the worksheet as the
body of an email. I found this code that does just that:

ActiveSheet.Range("A1:K71").Select
ActiveWorkbook.EnvelopeVisible = True
With ActiveSheet.MailEnvelope
.Item.To = AddressList
.Item.Subject = "Test Subject"
.Item.Send
End With

Great. But, the email shows the user's Exchange account
name in the FROM: field. They want an alias name to show.
Does someone know how I can choose what to display in the
FROM: field of the email message?

tod

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 983
Default Alias FROM: when sending mail in Excel

Try item.SentOnBehalfOfName

"Tod" wrote:

The user wants to send a portion of the worksheet as the
body of an email. I found this code that does just that:

ActiveSheet.Range("A1:K71").Select
ActiveWorkbook.EnvelopeVisible = True
With ActiveSheet.MailEnvelope
.Item.To = AddressList
.Item.Subject = "Test Subject"
.Item.Send
End With

Great. But, the email shows the user's Exchange account
name in the FROM: field. They want an alias name to show.
Does someone know how I can choose what to display in the
FROM: field of the email message?

tod


Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
sending multipul e-mail from excel Carl R[_2_] Excel Discussion (Misc queries) 1 September 22nd 09 10:18 AM
Sending One Cell Through Mail from Excel Man Mohan Singh Excel Worksheet Functions 1 April 27th 07 10:56 AM
General mail failure when sending e-mail from Excel Adrienne Excel Discussion (Misc queries) 5 November 4th 05 12:59 PM
Sending Mail from within Excel Don Lloyd Excel Programming 2 July 24th 04 09:28 PM
Sending mail from excel with CDO Christy[_5_] Excel Programming 3 December 9th 03 03:07 AM


All times are GMT +1. The time now is 04:01 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"