5,139
社区成员
发帖
与我相关
我的任务
分享
Dim myOlApp As New Outlook.Application
Dim mpfInbox As Outlook.Folder
Dim obj As Outlook.MailItem
Dim i As Integer
Set mpfInbox = myOlApp.GetNamespace("MAPI").GetDefaultFolder(olFolderInbox)
For i = 1 To 10
If mpfInbox.Items(i).Class = olMail Then
Set obj = mpfInbox.Items.Item(i)
MsgBox obj.SenderEmailAddress
End If
Next