I took the liberty of improving the code to get more fields and also check whether it was reading an e-mail since the code was choking on meeting notices and delivery error messages. Here is my revised code:
Sub ReadEmails()
'Stop Screen Updates
Application.ScreenUpdating = False
' Then remember to run automatic calculations back on
Application.Calculation = xlCalculationManual
Application.EnableEvents = False
'set this to the folder
Set OLF = GetObject("", "Outlook.Application").GetNamespace("MAPI").GetDefaultFolder(olFolderInbox)
i = OLF.Items.Count + 1
LR = Range("A65536").End(xlUp).Row
r = 1
'Add headers at the top of the columns
Worksheets("Sheet1").Cells(1, 1).Value = "TO"
Worksheets("Sheet1").Cells(1, 2).Value = "FROM"
Worksheets("Sheet1").Cells(1, 3).Value = "DATE RECEIVED"
Worksheets("Sheet1").Cells(1, 4).Value = "SUBJECT"
Worksheets("Sheet1").Cells(1, 5).Value = "CATEGORY"
Worksheets("Sheet1").Cells(1, 6).Value = "SENDER E-MAIL ADDRESS"
Do Until r = i
If OLF.Items(r).MessageClass = "IPM.Note" Then
subs = OLF.Items(r).Subject
daterec = WorksheetFunction.Text(OLF.Items(r).ReceivedTime, "mm/dd/yy h:mm:ss AM/PM")
'strID = OLF.Items(r).EntryID
strFROM = OLF.Items(r).SenderName
strCAT = OLF.Items(r).Categories
strTO = OLF.Items(r).To
strEM = OLF.Items(r).SenderEmailAddress
End If
Worksheets("Sheet1").Cells(LR + 1, 1).Value = strTO
Worksheets("Sheet1").Cells(LR + 1, 2).Value = strFROM
Worksheets("Sheet1").Cells(LR + 1, 3).Value = daterec
Worksheets("Sheet1").Cells(LR + 1, 4).Value = subs
Worksheets("Sheet1").Cells(LR + 1, 5).Value = strCAT
Worksheets("Sheet1").Cells(LR + 1, 6).Value = strEM
r = r + 1
LR = LR + 1
Loop
'Stop Screen Updates
Application.ScreenUpdating = True
' Then remember to run automatic calculations back on
Application.Calculation = xlCalculationAutomatic
Application.EnableEvents = True
End Sub