Accessing Outlook appointment info and exporting to Excel spreadsheet

  • Thread starter cmonroe21 via OfficeKB.com
  • Start date
C

cmonroe21 via OfficeKB.com

I need to access the information in the "Call Information" of the
appointments of a specific calendar in Outlook. The calendar is saved in a
public folder, and if you open any of the appointments and select "Call
Information" in the "Show" box a form pops up and displays info that was
saved there for that meeting. I need access to that information for all the
appointments in this calendar, and need to export them into an Excel
Spreadsheet.

I'm thinking that I need to know where this data is saved? How can I access
it? Or how do I find out where it is?

Very broad, I know, but any help would be greatly appreciated!
 
C

cmonroe21 via OfficeKB.com

So far I have recieved this code (mixed/pseudo), but I need to know how to
reference the proper library??? If you can help at all, please do!


Dim OLApp As Outlook.Application
Dim OLNameSpace As Outlook.NameSpace
Dim OLCalendar As Outlook.MAPIFolder
Dim MyAppointmentItem As Outlook.AppointmentItem

Private Sub Command1_Click()

Set OLApp = New Outlook.Application
Set OLNameSpace = OLApp.GetNamespace("MAPI")
Set OLCalendar = OLNameSpace.GetDefaultFolder(olFolderCalendar)

Set MyAppointmentItem = OLCalendar.Items.GetFirst

Do Until MyAppointmentItem Is Nothing

With MyAppointmentItem
' Do whatever
End With

Set MyAppointmentItem = OLCalendar.Items.GetNext
Loop

Set OLCalendar = Nothing
Set OLNameSpace = Nothing
Set OLApp = Nothing

End Sub
 
K

Ken Slovak - [MVP - Outlook]

Set a project reference to the Outlook library. How you do that depends on
what language the code was written in. If it's in VBA code then select
Tools, References in the VBA project and select Outlook from the list of
installed COM libraries.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top