Dim
OutlookApp
As
Outlook.Application
Dim
OutlookNamespace
As
Namespace
Dim
Folder
As
MAPIFolder
Dim
OutlookMail
As
Variant
Set
OutlookApp =
New
Outlook.Application
Set
OutlookNamespace = OutlookApp.GetNamespace(
"MAPI"
)
Set
Folder = OutlookNamespace.getdefaultfolder(olFolderSentMail)
For
Each
OutlookMail
In
Folder.items
Range(
"B7"
) = OutlookMail.Subject
Range(
"E7"
) = OutlookMail.Recipient
Next
OutlookMail
Set
Folder =
Nothing
Set
OutlookNamespace =
Nothing
Set
OutlookApp =
Nothing