Login | Register   
RSS Feed
Download our iPhone app
Browse DevX
Sign up for e-mail newsletters from DevX

Tip of the Day
Language: Enterprise
Expertise: Intermediate
Aug 6, 2001



Full Text Search: The Key to Better Natural Language Queries for NoSQL in Node.js

Getting MAPI entryID's From Outlook Folders

This tip is useful if you do Outlook automation with user created Outlook folders. These folders cannot be accessed by the GetDefaultFolder method usually employed in automation techniques. This snippet displays the folder name and MAPI entryID number for the folder. The GetFolderFromID can then be used to access and manipulate the user created folders and the items contained within. You must also make sure that you are referencing the appropriate Outlook library by going to the project and then to the references menu. This example only does one nested level, but the pattern is fairly obvious and should be easy to follow if there are more than two levels of outlook folders.
Dim oAPP As New Outlook.Application, oNAMESPACE As Outlook.NameSpace
Dim i , j As String
Dim atopFolders , abottomFolders As Outlook.Folders
Dim topFolder , bottomFolder As Outlook.MapiFolder

Set oAPP = CreateObject(
Dan De
Comment and Contribute






(Maximum characters: 1200). You have 1200 characters left.



Thanks for your registration, follow us on our social networks to keep up-to-date