L
Lars Brownie
With the test code beneath I'm able retrieve the SenderName of an
Outlookemail. This also works for Subject and Body. The only property I'm
still looking for is the datetime when the email was sent. I tried several
possibilities but no luck. Anyone an idea?
Thanks, Lars
Dim olApp As Outlook.Application
Dim olExp As Outlook.Explorer
Dim olSel As Outlook.Selection
Dim i
Set olApp = GetObject("", "Outlook.Application")
Set olExp = olApp.ActiveExplorer
Set olSel = olExp.Selection
MsgBox olSel.Item(1).SenderName
olSel.Item(1).SaveAs CurrentProject.Path & "\mail.txt", olTXT
Next
Outlookemail. This also works for Subject and Body. The only property I'm
still looking for is the datetime when the email was sent. I tried several
possibilities but no luck. Anyone an idea?
Thanks, Lars
Dim olApp As Outlook.Application
Dim olExp As Outlook.Explorer
Dim olSel As Outlook.Selection
Dim i
Set olApp = GetObject("", "Outlook.Application")
Set olExp = olApp.ActiveExplorer
Set olSel = olExp.Selection
MsgBox olSel.Item(1).SenderName
olSel.Item(1).SaveAs CurrentProject.Path & "\mail.txt", olTXT
Next