Quantcast
Channel: Active questions tagged excel - Stack Overflow
Viewing all articles
Browse latest Browse all 88868

How to extract sent items from Outlook shared mailbox in Excel VBA?

$
0
0

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'.


Viewing all articles
Browse latest Browse all 88868


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>