Get the current view and if it's a CalendarView object you can use the
.DisplayedDates property, which returns a string array of all the dates
currently displayed. The .CalendarViewMode property will return an enum
member telling you what view is displayed (day, month, etc.).
--
Ken Slovak
[MVP - Outlook]
http://www.slovaktech.com
Author: Absolute Beginner's Guide to Microsoft Office Outlook 2003
Reminder Manager, Extended Reminders, Attachment Options
http://www.slovaktech.com/products.htm
"Eric Quist" <Eric...@discussions.microsoft.com> wrote in message
news:F107F020-5556-4787...@microsoft.com...
>I want to know what dates are shown in the calendar view? So if the Month
> view is selected I want, to get the month shown, and if the Week view is
> selected I want to get the start date and end date of tha selected week.
> When googeling I found a tip about adding a new Appointment and read the
> date from that, but the new Appointment is always created for today, no
> matter of which day is active (selected).
> I'm doing a VSTO 2005 SE add-in for Outlook 2007.
--
Sue Mosher, Outlook MVP
Author of Configuring Microsoft Outlook 2003
http://www.turtleflock.com/olconfig/index.htm
and Microsoft Outlook Programming - Jumpstart for
Administrators, Power Users, and Developers
http://www.outlookcode.com/jumpstart.aspx
"Ken Slovak - [MVP - Outlook]" <kens...@mvps.org> wrote in message news:%23uKwFgL...@TK2MSFTNGP03.phx.gbl...
> This only applies to Outlook 2007, it's new in the object model.
>
> Get the current view and if it's a CalendarView object you can use the
> .DisplayedDates property, which returns a string array of all the dates
> currently displayed. The .CalendarViewMode property will return an enum
> member telling you what view is displayed (day, month, etc.).
>
/Eric
--
Ken Slovak
[MVP - Outlook]
http://www.slovaktech.com
Author: Absolute Beginner's Guide to Microsoft Office Outlook 2003
Reminder Manager, Extended Reminders, Attachment Options
http://www.slovaktech.com/products.htm
"Sue Mosher [MVP-Outlook]" <sue...@outlookcode.com> wrote in message
news:umrFFQMD...@TK2MSFTNGP04.phx.gbl...
/Eric
--
Ken Slovak
[MVP - Outlook]
http://www.slovaktech.com
Author: Absolute Beginner's Guide to Microsoft Office Outlook 2003
Reminder Manager, Extended Reminders, Attachment Options
http://www.slovaktech.com/products.htm
"Eric Quist" <Eric...@discussions.microsoft.com> wrote in message
news:4F8ECD0C-B4DF-426C...@microsoft.com...