View Single Post
  #4  
Old December 1st 06, 05:52 PM posted to microsoft.public.outlook.program_addins
Dmitry Streblechenko
external usenet poster
 
Posts: 1,574
Default Check for empty Explorer.Selection causes error in Outlook Today

You'd be better off comparing the entry ids rather than names.
The fact that (IExplorer.CurrentFolder FOutlookTodayFolder) is perfectly
normal. Each time you access Explorer.CurrentFolder, OOM returns a brand new
COM object.

Dmitry Streblechenko (MVP)
http://www.dimastr.com/
OutlookSpy - Outlook, CDO
and MAPI Developer Tool

"Slava Barouline" slavadotbarouline@recruitmentsystemsdotcomdotau wrote in
message ...
I have found an ugly hack

I check if I am in 'Outlook Today' folder:
IExplorer.CurrentFolder.Name FOutlookTodayFolder.Name

Strangely
IExplorer.CurrentFolder FOutlookTodayFolder
doesn't work for some reason

I get FOutlookTodayFolder like this:

NmSpace := OutlookApp.GetNamespace('MAPI');
Inbox := NmSpace.GetDefaultFolder(olFolderInbox);
FOutlookTodayFolder := Inbox.Parent as MAPIFolder;




Ads
 

Car Accident Lawyer Los Angeles - Nissan Armada Forum - Debt - Car Finance - Credit Counseling