Identifying Outlook groups using the OOM

  • Thread starter Thread starter Chris
  • Start date Start date
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
 
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.
 
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
 
Back
Top