Sub TestDeMerde()
' Variables
Dim OutlookApp As Outlook.Application
Dim OutlookNamespace As Namespace
Dim Folder As MAPIFolder
Dim OutlookMail As Variant
Dim i As Integer
' Déclaration
Set OutlookApp = New Outlook.Application
Set OutlookNamespace = OutlookApp.GetNamespace("MAPI")
Set Folder = OutlookNamespace.GetDefaultFolder(olFolderInbox)
Set Folder = OutlookNamespace.GetDefaultFolder(olFolderInbox).folders("TestExport")
' Extrac
i = 2
For Each OutlookMail In Folder.Items
Cells(i, 1) = OutlookMail.Subject
Cells(i, 2) = OutlookMail.ReceivedTime
Cells(i, 3) = OutlookMail.SenderName
Cells(i, 4) = OutlookMail.CC
Cells(i, 5) = OutlookMail.ReceivedByName
Cells(i, 6) = OutlookMail.Categories
i = i + 1
Next OutlookMail
' Fin instruction
Set Folder = Nothing
Set OutlookNamespace = Nothing
Set OutlookApp = Nothing
End Sub