Getting a task list into an items/selection variable

G

Guest

Hi. I'm trying to get my tasks from the tasks folder into an items object
list. The snag is that I need the order in the items list to be the same as
the order in the current outlook view. The view is hand-sorted, not sorted by
criteria. I see two options, neither of which I can get working:
(1) Do the equivalent of a SelectAll on the current explorer (assuming the
view is already showing), and then extract the items one at a time in a loop;
or
(2) Use a for each... loop which returns items in the order in which they
appear in that view.

I want to avoid needing to do a manual select in the view and then use the
Selection property, if possible. So far, the best I've been able to do is get
the items list from the current explorer, but these seem to be unsorted. Any
suggestions?

Thanks in advance,
Anthony
 
G

Guest

You can't select messages in the Explorer window AFAIK. You'll have to rely
on the user selecting a range of items (which you want to avoid), which will
be in the same order in the view as they are in the Selection object's Items
collection.
 

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