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 » Outlook and VBA
Site Map Home Register Authors List Search Today's Posts Mark Forums Read Web Partners

Getting a task list into an items/selection variable



 
 
Thread Tools Search this Thread Display Modes
  #1  
Old July 7th 06, 09:20 PM posted to microsoft.public.outlook.program_vba
Nomad
external usenet poster
 
Posts: 1
Default Getting a task list into an items/selection variable

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
Ads
  #2  
Old July 7th 06, 10:10 PM posted to microsoft.public.outlook.program_vba
Eric Legault [MVP - Outlook]
external usenet poster
 
Posts: 830
Default Getting a task list into an items/selection variable

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.

--
Eric Legault (Outlook MVP, MCDBA, MCTS: Messaging & Collaboration)
Try Picture Attachments Wizard for Outlook:
http://www.collaborativeinnovations.ca
Blog: http://blogs.officezealot.com/legault/


"Nomad" wrote:

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

 




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
Links between Contact and Task items Warren Outlook - Using Contacts 1 June 16th 06 03:26 PM
show all recurrences of a task in the task list dash Outlook - Calandaring 2 April 15th 06 03:45 AM
How do I drag a task in task list of Outlook. It will not let me. rpetralia Outlook - Calandaring 2 April 5th 06 11:14 AM
OUTLOOK 2003 CRASH AFTER DROP DOWN LIST SELECTION Ygaud Outlook - General Queries 3 March 15th 06 09:06 PM
Lost calendar & Task items in Outlook 2000 Bett Outlook - General Queries 1 February 20th 06 11:54 PM


All times are GMT +1. The time now is 08:31 PM.


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.