VBA not Recognizing MAPI
问题 I'm using VBA to enter into an outlook folder and put the message body into a cell. However on set ns = getnamespace("MAPI") I get an error "automation error library not registered". I have the following outlook related references selected (within Excel): Outlook 14.0 Object Library, Outlook SharePoint Social Provider, Outlook Social Provider Extensibility, Outlook View Control I'm using Excel 2010. The entire code follows. Any help would be greatly appreciated. Dim ns As Namespace Dim inbox