I am looking for some vba code to traverse through, lets say, my inbox folder, and open each email in there (similar to double clicking on each email), so that an outlook window pops up for each email... any ideas?
Dim ns As NameSpace
Dim Inbox As MAPIFolder
Dim Item As Object
Set ns = GetNamespace("MAPI")
Set Inbox = ns.GetDefaultFolder(olFolderInbox)
For Each Item In Inbox.Items
... (here is where lets say, i'd like to open each email)
Next Item
-----
If anything, can someone please point me at the correct API for VBA? I know that MailItems exist, perhaps i should be using those, but i do not know the methods i can use on those type of objects...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.