I'm trying to extract emails from a group/shared mailbox in Outlook using the code below in Excel.
olObjNs.GetSharedDefaultFolder(olShareName, olFolderInbox)
Using this I can extract inbox items.
https://msdn.microsoft.com/en-us/vba/outlook-vba/articles/namespace-getshareddefaultfolder-method-outlook says "..... olFolderSentMail cannot be specified for this argument."
How do I get 'Sent items' from a shared mailbox?
I tried olObjNs.GetDefaultFolder(olFolderSentMail)
but it retrieves my personal email 'Sent Items'.
olFolderSentMail
argument is used for theGetSharedDefaultFolder
function? – Eugene Astafiev