none
Accessing Personal Outlook Calendar using VB. RRS feed

  • General discussion

  •  I have the VB program adding events to my Outlook Calendar, but I cannot get it to access any Calendar other than the default.

    Code is:

        Set objOutlook = CreateObject("Outlook.Application")

        Dim itmAppt
        Set itmAppt = objOutlook.CreateItem(1)

        eventDate = blah blah 
        eventTime = blah blah
        itmAppt.subject = blah blah 
        itmAppt.Start = eventDate & " " & eventTime
        itmAppt.duration = blah blah
        itmAppt.AllDayEvent = False
        itmAppt.ReminderSet = True
        itmAppt.ReminderMinutesBeforeStart = "15"
        itmAppt.Save

    Any help with this is appreciated.

    thanks
    Dj

    • Changed type Martin Xie - MSFT Monday, August 25, 2008 7:26 AM Redirect to appropriate forums.
    Monday, August 18, 2008 10:12 PM

All replies