Saving emails that was sent from workbook to drive

PrestonRW

New Member
Joined
Apr 8, 2019
Messages
2
Hi All

I hope that somebody can help me if this is possible. I am new at this :smile: so please bear with me. I am sending emails with the code below and it works fine. What I would like to do is save those emails to my drive for record purposes. Is this possible
:confused:

Thanks
Preston

Dim OutApp As Object
Dim OutMail As Object
Dim Dest As Variant
Dim SDest As String

Set OutApp = CreateObject("Outlook.Application")
Set OutMail = OutApp.CreateItem(0)

On Error Resume Next
' email address in worksheet
Dest = cell.Offset(0, 1).Value



With OutMail
.To = Dest
.CC = ""
.BCC = ""
.Subject = Filename
.Body = "Good Day" & vbNewLine & vbNewLine & "Please find attached your monthly shedules."
.Attachments.Add ActiveWorkbook.FullName
'.Attachments.Add (Path & sfile)
.Send 'or use
'.Display
.OriginatorDeliveryReportRequested = True


End With
On Error GoTo 0
Set OutMail = Nothing
Set OutApp = Nothing


[TABLE="width: 827"]
<colgroup><col width="78" style="width: 59pt; mso-width-source: userset; mso-width-alt: 2852;"><colgroup><col width="102" style="width: 77pt; mso-width-source: userset; mso-width-alt: 3730;"><colgroup><col width="102" style="width: 77pt; mso-width-source: userset; mso-width-alt: 3730;"><colgroup><col width="819" style="width: 614pt; mso-width-source: userset; mso-width-alt: 29952;"><tbody>[TR]
[TD="width: 78, bgcolor: #0070C0"]INST
[/TD]
[TD="width: 102, bgcolor: #0070C0"]DED TYPE[/TD]
[TD="width: 102, bgcolor: #0070C0"]COUNT[/TD]
[TD="width: 819, bgcolor: transparent, align: left"]
clip_image002.png

<tbody>
[TD="width: 819, bgcolor: #0070C0"] CONTACTS [/TD]

</tbody>
[/TD]
[/TR]
[TR]
[TD="bgcolor: transparent"]ABH[/TD]
[TD="bgcolor: transparent"] [/TD]
[TD="bgcolor: transparent"]7[/TD]
[TD="bgcolor: transparent"]Ebfundservices@metropolitan.co.za [/TD]
[/TR]
[TR]
[TD="width: 78, bgcolor: transparent"]ADD[/TD]
[TD="width: 102, bgcolor: transparent"] [/TD]
[TD="width: 102, bgcolor: transparent"]1[/TD]
[TD="width: 819, bgcolor: transparent"]AFRFContributions@aforbes.co.za;KgobetsiB@aforbes.com.na;SofikaE@aforbes.com.na[/TD]
[/TR]
[TR]
[TD="width: 78, bgcolor: transparent"]ADL[/TD]
[TD="width: 102, bgcolor: transparent"] [/TD]
[TD="bgcolor: transparent"]1[/TD]
[TD="width: 819, bgcolor: transparent"]MoloseB@aforbes.co.za[/TD]
[/TR]
[TR]
[TD="bgcolor: transparent"]ADR[/TD]
[TD="bgcolor: transparent"] [/TD]
[TD="bgcolor: transparent"]3[/TD]
[TD="bgcolor: transparent"]FakudeN@aforbes.co.za;CoombeT@aforbes.co.za[/TD]
[/TR]
</tbody>[/TABLE]
 

Excel Facts

Whats the difference between CONCAT and CONCATENATE?
The newer CONCAT function can reference a range of cells. =CONCATENATE(A1,A2,A3,A4,A5) becomes =CONCAT(A1:A5)
Why don't you put a BCC of your own email account - you will get a copy of everything then. You can use your email program to stream them off into a separate folder as well.
 
Last edited:
Upvote 0
Why don't you put a BCC of your own email account - you will get a copy of everything then. You can use your email program to stream them off into a separate folder as well.

Thanks for the reply, will give it a try, sure that it will work. I just thought there was a way to save the email to your drive immediately.
 
Upvote 0

Forum statistics

Threads
1,224,822
Messages
6,181,165
Members
453,021
Latest member
Justyna P

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top