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 :) 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


INST
DED TYPECOUNT
clip_image002.png
CONTACTS

<tbody>
</tbody>
ABH 7Ebfundservices@metropolitan.co.za
ADD 1AFRFContributions@aforbes.co.za;KgobetsiB@aforbes.com.na;SofikaE@aforbes.com.na
ADL 1MoloseB@aforbes.co.za
ADR 3FakudeN@aforbes.co.za;CoombeT@aforbes.co.za

<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>
</tbody>
 

Excel Facts

Show numbers in thousands?
Use a custom number format of #,##0,K. Each comma after the final 0 will divide the displayed number by another thousand
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,214,833
Messages
6,121,867
Members
449,053
Latest member
Mesh

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