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

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
 
K

Ken Slovak - [MVP - Outlook]

For what version of Outlook? For Outlook 2007 you can use the
CalendarModule's CalendarView and look at the properties there.
 
J

Jeff

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
 
K

Ken Slovak - [MVP - Outlook]

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.
 

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