How to know the folder name
OutlookInterop.NameSpace olNameSpace = null;
OutlookInterop.MAPIFolder oCalendar = null;
olNameSpace =
ThisAddIn.ApplicationObject.GetNamespace("mapi");
oCalendar =
olNameSpace.GetDefaultFolder(OutlookInterop.OlDefa ultFolders.olFolderCalendar);
OutlookInterop.MAPIFolder folder =
ThisAddIn.ApplicationObject.ActiveExplorer().Curre ntFolder;
oCalendar.name will do ?
"Ashish" wrote:
If this is Outlook 2007 you can use the
Application.FolderContextMenuDisplay() event to get the folder and its
name from the second argument passed to that event handler.
thanks
There's nothing really helpful for earlier versions of Outlook.
for outlook 2003 is there no way to track it
.
|