jwcoleman87
Well-known member
- Joined
- Oct 4, 2014
- Messages
- 124
- Programming Experience
- Beginner
Hello all, something I thought would have been super easy, but after exhausting the google search engine I am coming up dry.
I am able to get my default calendar no problem:
But, apparently selecting a different calendar is not as straight forward and I cannot seem to figure out how to do it. I want this one:
I haven't found a single function that allows me to grab a calendar by name.
Even if all you can do is help me search for resources, that would be greatly appreciated!
I am able to get my default calendar no problem:
VB.NET:
Imports Microsoft.Office.Core
Imports Microsoft.Office.Interop.Outlook
Imports Microsoft.Office.Tools.Outlook
Public Class TeletrackOL
'Handles initialization of startup variables
Private Sub ThisAddIn_Startup() Handles Application.Startup
Dim mpnNamespace As Outlook.NameSpace = Application.GetNamespace("MAPI")
Dim oCalendar As Outlook.MAPIFolder = mpnNamespace.GetDefaultFolder(Outlook.OlDefaultFolders.olFolderCalendar)
MsgBox(oCalendar.Name)
End Sub
End Class
But, apparently selecting a different calendar is not as straight forward and I cannot seem to figure out how to do it. I want this one:
I haven't found a single function that allows me to grab a calendar by name.
Even if all you can do is help me search for resources, that would be greatly appreciated!
Last edited: