How to find selected day on outlook calendar view during menu popup?

  • Thread starter Thread starter Jeff
  • Start date Start date
J

Jeff

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
 
For what version of Outlook? For Outlook 2007 you can use the
CalendarModule's CalendarView and look at the properties there.
 
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
 
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.
 
Back
Top