Professional Documents
Culture Documents
Untitled
Untitled
Cells(iRows, 1) = iRows
Cells(iRows, 2) = objMail.SenderEmailAddress
Cells(iRows, 3) = objMail.Subject
Cells(iRows, 4) = objMail.ReceivedTime
End If
iRows = iRows + 1
Next
Set objMail = Nothing
' Release.
Set objOutlook = Nothing
Set objNSpace = Nothing
Set myFolder = Nothing
ErrHandler:
Debug.Print Err.Description
End Sub