In whatever code module you want to work, Tools|References select the Microsoft Outlook Object Library
Then in your code you can use all those cool outlook objects.
If memory serves...
Dim Outlook As Outlook.Application
Dim MyNS As Outlook.NameSpace
Set Outlook = New Outlook.Application
Set MyNS = Outlook.GetNameSpace("MAPI"
etc.
Check out in your Outlook help files under Advanced Customization|Microsoft Outlook Visual Basic Reference|Microsoft Outlook Objects for a map of the Outlook object hierarchy. JHall
Hi, exactly what kinda data do you want and from which email folder? If it's something like Address book, or contact folder and such, then what JHall suggested is the way to go, if it's something like each email in the inbox, their attachments and stuff like that, then I think the .ActiveInspector property works great. I don't know exactly what you are trying to do, if you could be more specific, maybe I can help a bit more.
k, I just realized that the initial post was made 10 days ago, so I'm guessing that you've already had this resolved, this is just in case you are still having trouble then
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.