From: senglory on
I'm trying to create custom calendar in Startup handler in my VSTO. It
creates successfully:

[CODE]
_ns = Me.Application.GetNamespace("MAPI")
Me._colCalendar =
_ns.GetDefaultFolder(Outlook.OlDefaultFolders.olFolderCalendar)
nf = Me._colCalendar.Folders.Add("MY CALENDAR NAME",
Outlook.OlDefaultFolders.olFolderCalendar)
[/CODE]


but I don't see it in calendars list after Outlook showed up on my monitor.
What's wrong to my code?

From: Brian Tillman [MVP-Outlook] on
"senglory" <senglory(a)discussions.microsoft.com> wrote in message
news:6F29658F-842C-459A-8036-88D41B39946F(a)microsoft.com...

> I'm trying to create custom calendar in Startup handler in my VSTO. It
> creates successfully:
>
> [CODE]
> _ns = Me.Application.GetNamespace("MAPI")
> Me._colCalendar =
> _ns.GetDefaultFolder(Outlook.OlDefaultFolders.olFolderCalendar)
> nf = Me._colCalendar.Folders.Add("MY CALENDAR NAME",
> Outlook.OlDefaultFolders.olFolderCalendar)
> [/CODE]
>
>
> but I don't see it in calendars list after Outlook showed up on my monitor.
> What's wrong to my code?

Ask in the programming group microsoft.public.outlook.program_addins
--
Brian Tillman [MVP-Outlook]