View Single Post
  #5  
Old September 11th 06, 12:52 AM posted to microsoft.public.outlook.program_vba
Jonas Svensson
external usenet poster
 
Posts: 2
Default Outlook2003 Script How to change the sender

Here's some code that I use:

Dim myOlApp As Outlook.Application
Dim myItem As Outlook.MailItem

Dim colReplyRecips As Recipients
Dim objReplyRecip As Recipient

' Create an Outlook application object
Set myOlApp = New Outlook.Application

' Creates a new MailItem form
Set myItem = myOlApp.CreateItem(olMailItem)

Set colReplyRecips = myItem.ReplyRecipients
Set objReplyRecip = ")

bbnimda wrote:
Tks a lot sue your answer are very usefull to me

Tryed tu use this but i doesn't work , Sorry i'm new in Vbscript and
VBA

Item.ReplyRecipients = "mydistributionlist"

can your where am I wrong...

tks



"Sue Mosher [MVP-Outlook]" a écrit dans le message
de news: ...
You can use the Item.ReplyRecipients collection to control the reply-to
address.

Ads