Identifying Outlook groups using the OOM

C

Chris

Hi,

Does anybody know if it's possible to identify whether a group is
selected in Outlook (e.g. the '- Date: Today' row) using the OOM and
if so, the items within that group?

As far as I can tell, when a group is selected the Count property on
the OOM Selection object just returns zero.

Many thanks,
Chris
 
K

Ken Slovak - [MVP - Outlook]

Outlook 2007 has the new CalendarView object, an instance of a View object.
That has various properties such as DisplayedDates that can be used to find
out how the calendar is displayed. However, if nothing is selected in the
calendar view Explorer.Selection.Count will always be 0.

To see what items might be in a view you'd have to get the displayed dates
and the displayed starting and ending times (StartField and EndField, both
string properties) and then filter the Items collection to see what items
fit the display parameters.
 
C

Chris

Thanks Ken for the quick response.

I was thinking more of when a user has the 'View->Arrange By->Show In
Groups' option selected and is in a mail folder such as Inbox, sorted
by sender. Is it possible to tell if the user has a group selected (in
this example, the group row would be something like: 'From: Joe Bloggs
(3 items)'?

Thanks,
Chris


Outlook 2007 has the new CalendarView object, an instance of a View object.
That has various properties such as DisplayedDates that can be used to find
out how the calendar is displayed. However, if nothing is selected in the
calendar view Explorer.Selection.Count will always be 0.

To see what items might be in a view you'd have to get the displayed dates
and the displayed starting and ending times (StartField and EndField, both
string properties) and then filter the Items collection to see what items
fit the display parameters.

--
Ken Slovak
[MVP - Outlook]http://www.slovaktech.com
Author: Professional Programming Outlook 2007
Reminder Manager, Extended Reminders, Attachment Optionshttp://www.slovaktech.com/products.htm




Does anybody know if it's possible to identify whether a group is
selected in Outlook (e.g. the '- Date: Today' row) using the OOM and
if so, the items within that group?
As far as I can tell, when a group is selected the Count property on
the OOM Selection object just returns zero.
Many thanks,
Chris- Hide quoted text -

- Show quoted text -
 

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