Results 1 to 3 of 3

Create Outlook Appointment in Excel VBA

Threaded View

  1. #1
    Registered User
    Join Date
    05-21-2009
    Location
    tx
    MS-Off Ver
    Excel 2003
    Posts
    8

    Create Outlook Appointment in Excel VBA

    Hello,

    I am trying to create an Outlook appointment in Excel VBA. I'm trying to use late-binding code, because I'm not sure which versions my users will have. Here's what I have so far:

    Sub appointment()
      
    Dim OutlookApp
    Dim AP
    Set OutlookApp = GetObject(, "Outlook.Application")
    OutlookApp.GetNamespace("MAPI").Logon
    Set AP = OutlookApp.CreateItem(olAppointmentItem)
    With AP
    .Display (True)
    End With
        
    End Sub
    However, it keeps opening an email item (instead of an appointment). Please help! Thank you!
    Last edited by newbie28; 03-23-2011 at 10:22 AM.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1