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

jmacleary

Well-known Member
Joined
Oct 5, 2015
Messages
796
Office Version
2007
Platform
Windows
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:

PrestonRW

New Member
Joined
Apr 8, 2019
Messages
2
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.
 

Forum statistics

Threads
1,082,358
Messages
5,364,914
Members
400,815
Latest member
Joaquin Phoenix

Some videos you may like

This Week's Hot Topics

  • populate from drop list with multiple tables
    Hi All, i have a drop list that displays data, what i want is when i select one of those from the list to populate text from different tables on...
  • Find list of words from sheet2 in sheet1 before a comma and extract text vba
    Hi Friends, Trying to find the solution on my task. But did not find suitable one to the need. Here is my query and sample file with details...
  • Dynamic Formula entry - VBA code sought
    Hello, really hope one of you experts can help with this - i've spent hours on this and getting no-where. .I have a set of data (more rows than...
  • Listbox Header
    Have a named range called "AccidentsHeader" Within my code I have: [CODE]Private Sub CommandButton1_Click() ListBox1.RowSource =...
  • Complex Heat Map using conditional formatting
    Good day excel world. I have a concern. Below link have a list of countries that carries each country unique data. [URL...
  • Conditional formatting
    Hi good morning, hope you can help me please, I have cells P4:P54 and if this cell is equal to 1 then i want row O to say "Fully Utilised" and to...
Top