View Single Post
  #6  
Old July 28th 09, 06:27 PM posted to microsoft.public.outlook.program_addins
Ken Slovak - [MVP - Outlook]
external usenet poster
 
Posts: 5,848
Default The operation failed.

If a MAPIFolder is not null then you can get its properties. Set a
breakpoint at that line of code and use the Locals window to see what
properties are exposed on that COM object. Same thing for CommandBars.

Any Explorer will have a valid CommandBars collection. If you get a valid
Explorer I can't see why you wouldn't be able to get the CommandBars
collection for it. Again, use the Locals window to see what's up.

--
Ken Slovak
[MVP - Outlook]
http://www.slovaktech.com
Author: Professional Programming Outlook 2007.
Reminder Manager, Extended Reminders, Attachment Options.
http://www.slovaktech.com/products.htm


"j" wrote in message
...
snip
Thank you,

I got it, now my question is what should i do if i get null in
COMMANDBARS??
by the way i'm moreo then sure, that these objects not NULL, and still
they ends up with ComExcpetion.

What do you say??

Ads