![]() |
How to find selected day on outlook calendar view during menu popup?
Hi All
I'm adding a couple of items to the CommandBar during the OnViewContextMenuDisplay event ( which passes in CommandBar* and View* ) when a user selects a day within the calendar view. Any bright ideas how I can find out what day/date is currently selected? ie: the target day of the popup menu? Thanks! Jeff |
How to find selected day on outlook calendar view during menu popup?
For what version of Outlook? For Outlook 2007 you can use the
CalendarModule's CalendarView and look at the properties there. -- 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 "Jeff" wrote in message ... Hi All I'm adding a couple of items to the CommandBar during the OnViewContextMenuDisplay event ( which passes in CommandBar* and View* ) when a user selects a day within the calendar view. Any bright ideas how I can find out what day/date is currently selected? ie: the target day of the popup menu? Thanks! Jeff |
How to find selected day on outlook calendar view during menu popup?
Hi Ken
Using: OL2007 I might be blind, but I don't see a CalendarView Object's property that returns the currently selected date/time range. I suspect that might be too easy ;) I came across Sue Mosher's "Create custom appointment with user's time selection" workaround on outlookcode.com. ( http://www.outlookcode.com/codedetail.aspx?id=616 ) that does the trick, but what a hack ;) Do you know of a better solution? Thanks. Jeff "Ken Slovak - [MVP - Outlook]" wrote in message ... For what version of Outlook? For Outlook 2007 you can use the CalendarModule's CalendarView and look at the properties there. -- 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 "Jeff" wrote in message ... Hi All I'm adding a couple of items to the CommandBar during the OnViewContextMenuDisplay event ( which passes in CommandBar* and iew* ) when a user selects a day within the calendar view. Any bright ideas how I can find out what day/date is currently selected? ie: the target day of the popup menu? Thanks! Jeff |
How to find selected day on outlook calendar view during menu popup?
No, I misunderstood what you wanted, sorry. The .DisplayedDates property
returns a variant array of displayed dates. The only way to get the selected day/times is Sue's method. -- 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 "Jeff" wrote in message ... Hi Ken Using: OL2007 I might be blind, but I don't see a CalendarView Object's property that returns the currently selected date/time range. I suspect that might be too easy ;) I came across Sue Mosher's "Create custom appointment with user's time selection" workaround on outlookcode.com. ( http://www.outlookcode.com/codedetail.aspx?id=616 ) that does the trick, but what a hack ;) Do you know of a better solution? Thanks. Jeff |
All times are GMT +1. The time now is 12:32 PM. |
Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 2.4.0
Copyright ©2004-2006 OutlookBanter.com