Ready to improve network connectivity? Watch this webinar to learn how SD-WANs and a one-click instant connect tool can boost provisions, deployment, and management of your cloud connection.
Dim objOL As Application Dim objNS As Outlook.NameSpace Dim myItems As Items Dim x As Int16 objOL = New Application() objNS = objOL.GetNamespace("MAPI") Dim olfolder As MAPIFolder olfolder = objOL.GetNamespace("MAPI").GetDefaultFolder(OlDefaultFolders.olFolderInbox) myItems = olfolder.Items For x = myItems.Count To 1 Step -1 If myItems.Item(x).To.ToString.Contains("Username") Then MsgBox(myItems.Item(x).SenderName) MsgBox(myItems.Item(x).Subject) End If Next x
Add your voice to the tech community where 5M+ people just like you are talking about what matters.
Join the community of 500,000 technology professionals and ask your questions.