A Microsoft Outlook email forum. Outlook Banter

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » Outlook Banter forum » Microsoft Outlook Email Newsgroups » Outlook and VBA
Site Map Home Register Authors List Search Today's Posts Mark Forums Read Web Partners

Accessing Outlook appointment info and exporting to Excel spreadsheet



 
 
Thread Tools Search this Thread Display Modes
  #1  
Old February 18th 09, 08:42 PM posted to microsoft.public.outlook.program_vba
cmonroe21 via OfficeKB.com
external usenet poster
 
Posts: 53
Default Accessing Outlook appointment info and exporting to Excel spreadsheet

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!

--
Message posted via OfficeKB.com
http://www.officekb.com/Uwe/Forums.a...g-vba/200902/1

Ads
  #2  
Old February 18th 09, 09:12 PM posted to microsoft.public.outlook.program_vba
cmonroe21 via OfficeKB.com
external usenet poster
 
Posts: 53
Default Accessing Outlook appointment info and exporting to Excel spreadsheet

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

cmonroe21 wrote:
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!


--
Message posted via OfficeKB.com
http://www.officekb.com/Uwe/Forums.a...g-vba/200902/1

  #3  
Old February 20th 09, 03:35 PM posted to microsoft.public.outlook.program_vba
Ken Slovak - [MVP - Outlook]
external usenet poster
 
Posts: 5,848
Default Accessing Outlook appointment info and exporting to Excel spreadsheet

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.

--
Ken Slovak
[MVP - Outlook]
http://www.slovaktech.com
Author: Professional Programming Outlook 2007.
Reminder Manager, Extended Reminders, Attachment Options.
http://www.slovaktech.com/products.htm


"cmonroe21 via OfficeKB.com" u48566@uwe wrote in message
news:91e87ca4eee87@uwe...
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

cmonroe21 wrote:
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!


--
Message posted via OfficeKB.com
http://www.officekb.com/Uwe/Forums.a...g-vba/200902/1


 




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
exporting distribution lists to Excel spreadsheet Noe1better Outlook - Using Contacts 5 December 13th 09 12:09 PM
outlook 2003 macro to extract calendar appointment info to Excel CPOjoe Outlook - Calandaring 3 July 15th 08 04:04 PM
Exporting Calendar Info Into Excel amysmel Outlook - Calandaring 10 March 11th 08 07:39 PM
How do I import contact info from an excel spreadsheet to outlook CLF8475 Outlook - Using Contacts 2 September 8th 06 02:31 AM
Linking an Excel Spreadsheet to Outlook KevinM Outlook - Calandaring 1 February 15th 06 10:51 PM


All times are GMT +1. The time now is 12:44 AM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.Search Engine Friendly URLs by vBSEO 2.4.0
Copyright ©2004-2025 Outlook Banter.
The comments are property of their posters.