Hi,
I need to change the outlook session when sending an e-mail using VBA from Excel. The main point instead of sending the e-mail from the session "me@office.com" it send it from another account: "myoffice@office.com".
The only thing rigth now is the created e-mail with a string with the e-mail I want to send the message to. here is my mini sub:
Sub Contacts_in_mail(emailist As String)
Set OutApp = CreateObject("Outlook.Application")
Set OutMail = OutApp.CreateItem(olMailItem)
With OutMail
.To = ""
.CC = ""
.BCC = emailist
.Display
End With
Set OutMail = Nothing
Set OutApp = Nothing
End Sub
Thnks...
I need to change the outlook session when sending an e-mail using VBA from Excel. The main point instead of sending the e-mail from the session "me@office.com" it send it from another account: "myoffice@office.com".
The only thing rigth now is the created e-mail with a string with the e-mail I want to send the message to. here is my mini sub:
Sub Contacts_in_mail(emailist As String)
Set OutApp = CreateObject("Outlook.Application")
Set OutMail = OutApp.CreateItem(olMailItem)
With OutMail
.To = ""
.CC = ""
.BCC = emailist
.Display
End With
Set OutMail = Nothing
Set OutApp = Nothing
End Sub
Thnks...