Outlook Appointments

D

DENNIS BROWN

Hi,
I need to read all the appointments for the currently focused day into variables for use in a 3rd party adaptive-access application.
Where would I find examples of doing this?
What I need to do is retrieve the appointment properties for each appointment within the current day the user has focused on within the Day View of their calendar.
I just need to retrieve the data, not set it, so any code examples of how to retrieve that data would be greatly appreciated!
 
M

Michael Bauer [MVP - Outlook]

Am Fri, 29 Sep 2006 21:27:54 -0400 schrieb DENNIS BROWN:

This sample shows how to get all appointments of a specific day:
http://www.vboffice.net/sample.html?mnu=2&smp=13&cmd=showitem

Call it like this:

Dim Result as Outlook.Items
Dim Count as Long

Count=AppointmentsAtDay(Date, Result)
If Count > 0 Then
...
Endif

You can then loop through the Result collection and read each objects
properties.

To get the selected day you need a workaround: Create an AppointmentItem and
read its Start property.

--
Viele Gruesse / Best regards
Michael Bauer - MVP Outlook
-- www.VBOffice.net --

Hi,
I need to read all the appointments for the currently focused day into
variables for use in a 3rd party adaptive-access application.
Where would I find examples of doing this?
What I need to do is retrieve the appointment properties for each
appointment within the current day the user has focused on within the Day
View of their calendar.
I just need to retrieve the data, not set it, so any code examples of how
to retrieve that data would be greatly appreciated!
 
D

DENNIS BROWN

Thanks! That'll give me a start!

--

Thanks,
Dennis
Am Fri, 29 Sep 2006 21:27:54 -0400 schrieb DENNIS BROWN:

This sample shows how to get all appointments of a specific day:
http://www.vboffice.net/sample.html?mnu=2&smp=13&cmd=showitem

Call it like this:

Dim Result as Outlook.Items
Dim Count as Long

Count=AppointmentsAtDay(Date, Result)
If Count > 0 Then
...
Endif

You can then loop through the Result collection and read each objects
properties.

To get the selected day you need a workaround: Create an AppointmentItem and
read its Start property.

--
Viele Gruesse / Best regards
Michael Bauer - MVP Outlook
-- www.VBOffice.net --

Hi,
I need to read all the appointments for the currently focused day into
variables for use in a 3rd party adaptive-access application.
Where would I find examples of doing this?
What I need to do is retrieve the appointment properties for each
appointment within the current day the user has focused on within the Day
View of their calendar.
I just need to retrieve the data, not set it, so any code examples of how
to retrieve that data would be greatly appreciated!
 

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