jbeaucaire
Well-known Member
- Joined
- May 8, 2002
- Messages
- 6,012
I'm using a standard little Excel macro to send an individual email to each person in a list:
Problem, I'd like to set the "Save Sent Message To:" option on each of these emails, too. Is there a way to do this in Excel VBA? I could just copy all these emails manually out of the SENT EMAILS folder, but if it's possible to file them using the macro, even better.
Code:
Set OutApp = CreateObject("Outlook.Application")
Set OutMail = OutApp.CreateItem(0)
With ActiveSheet
For Each Email In .Range("T2:T70")
With OutMail
.To = Email
.CC = ""
.BCC = ""
.Subject = .Range("A" & Email.Row) & " - Computer Updated"
.Body = "Message text here"
.Display 'or use .Send
'.send
End With
Next Email
End With
Problem, I'd like to set the "Save Sent Message To:" option on each of these emails, too. Is there a way to do this in Excel VBA? I could just copy all these emails manually out of the SENT EMAILS folder, but if it's possible to file them using the macro, even better.
Last edited: