Getting the date in Calendar View

G

Guest

In Calendar view in Outlook 2007, I want to retreive the date of the day I
selected. When I double-click on a date the appointment-form comes up with
the right date filled in. What I want to do is selecting a day and clicking a
toolbar-button with a vba-script behind it, that uses that day for further
handling.

Can someone help me please?
 
G

Guest

Michael,

Thank you for you reply.
But it doesn't work.
When I create a new appointment with:
loAppointment = Application.CreateItem(olAppointmentItem)
I always get todays date in the start date.

The Calendar View is of type Day/Week/Month in the Month view.
When a day is highlighted, I want to know what that day is in VBA. Isn't
there any property field in the CalendarView object, which I missed?

Regards
Ben
Technology Consultant Microsoft Technologies
 
G

Guest

Sue,

Thank you for your reply.
It indeed functions.
A pitty that there is not a propertie present in the CalendarView object
representing the start date and end date of the selected dates.
But nevertheless, for now this solution solved my problem.

Regards and thank you again,

Ben
Technology Consultant Microsoft Technologies
 
S

Sue Mosher [MVP-Outlook]

I agree. Even though the CalendarView object in Outlook 2007 has a DisplayedDates property, it's broken in RTM and doesn't tell you anything about the selected date/time (if any).

--
Sue Mosher, Outlook MVP
Author of Microsoft Outlook 2007 Programming:
Jumpstart for Power Users and Administrators
http://www.outlookcode.com/article.aspx?id=54
 

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