A Microsoft Outlook email forum. Outlook Banter

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » Outlook Banter forum » Microsoft Outlook Email Newsgroups » Add-ins for Outlook
Site Map Home Register Authors List Search Today's Posts Mark Forums Read Web Partners

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



 
 
Thread Tools Search this Thread Display Modes
  #1  
Old May 1st 08, 05:55 PM posted to microsoft.public.outlook.program_addins
Jeff[_7_]
external usenet poster
 
Posts: 11
Default 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


Ads
  #2  
Old May 1st 08, 06:38 PM posted to microsoft.public.outlook.program_addins
Ken Slovak - [MVP - Outlook]
external usenet poster
 
Posts: 5,848
Default 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


  #3  
Old May 2nd 08, 02:26 PM posted to microsoft.public.outlook.program_addins
Jeff[_7_]
external usenet poster
 
Posts: 11
Default 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




  #4  
Old May 2nd 08, 03:33 PM posted to microsoft.public.outlook.program_addins
Ken Slovak - [MVP - Outlook]
external usenet poster
 
Posts: 5,848
Default 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


 




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
CommandBarButton with icon, caption and popup menu [email protected] Outlook and VBA 1 May 1st 08 02:46 PM
CommandBarButton with icon, caption and popup menu [email protected] Outlook and VBA 0 May 1st 08 01:30 PM
Public Calendar view not showing when selected as Favorite [email protected] Outlook - Calandaring 1 September 25th 06 07:59 PM
Get Outlook calendar to popup when double clicked in folder view Lloyd leiderman Outlook - Calandaring 1 August 9th 06 02:04 AM
calendar should remember specific days selected to view ConsultingJay Outlook - Calandaring 0 March 30th 06 03:59 PM


All times are GMT +1. The time now is 08:54 AM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.Search Engine Friendly URLs by vBSEO 2.4.0
Copyright ©2004-2025 Outlook Banter.
The comments are property of their posters.