Get Appointment Information of new Appointment Window RRS feed

  • Question

  • Hi,

    I´m developing an Room Reservation Tool for Outlook 2007.

    I want to use the entered values of the new appointment window for my reservation tool, how can i request these values?

    Thursday, April 17, 2008 1:00 PM


  • From the Outlook object model, Application.ActiveInspector.CurrentItem, will return the currently open item. Cast it to an AppointmentItem, and you will have access to all the AppointmentItem properties. Here's a VB.NET snippet:

    Code Snippet

            Dim olApp As Outlook.Application
            Dim insp As Outlook.Inspector
            Dim appt As Outlook.AppointmentItem
            olApp = Globals.ThisAddIn.Application
            insp = olApp.ActiveInspector
            If insp IsNot Nothing Then
                appt = TryCast(insp.CurrentItem, Outlook.AppointmentItem)
                If appt IsNot Nothing Then
                End If
            End If

    Thursday, April 17, 2008 1:44 PM