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

Iterating through multiple items selected in a mailbox



 
 
Thread Tools Search this Thread Display Modes
  #1  
Old June 6th 07, 03:41 PM posted to microsoft.public.outlook.program_vba
dch3
external usenet poster
 
Posts: 105
Default Iterating through multiple items selected in a mailbox

Just doing a bit of discover at the moment as this came up in a what-if
converstation this morning...

When a user has selected multiple items in an inbox, how can I iterate
through each using code?

We're discussing implementing custom code that iterates through the items
that a user has selected in an mailbox and then forward each item selected to
an email account as a separate item. Using right-click forward is not an
option as it would the items as attachments to a single email. Selecting a
single message and then clicking forward is not an option due to the volume
of emails that we're working with. Rules aren't an option since the person
who will receive the emails can change. The idea is to help automate the
forwarding of the emails - its a generic email account that we're working
with if you haven't guessed.







  #2  
Old June 6th 07, 06:46 PM posted to microsoft.public.outlook.program_vba
Dmitry Streblechenko
external usenet poster
 
Posts: 2,116
Default Iterating through multiple items selected in a mailbox

Use the Application.ActiveExplorer.Selection collection

Dmitry Streblechenko (MVP)
http://www.dimastr.com/
OutlookSpy - Outlook, CDO
and MAPI Developer Tool

"dch3" wrote in message
...
Just doing a bit of discover at the moment as this came up in a what-if
converstation this morning...

When a user has selected multiple items in an inbox, how can I iterate
through each using code?

We're discussing implementing custom code that iterates through the items
that a user has selected in an mailbox and then forward each item selected
to
an email account as a separate item. Using right-click forward is not an
option as it would the items as attachments to a single email. Selecting a
single message and then clicking forward is not an option due to the
volume
of emails that we're working with. Rules aren't an option since the person
who will receive the emails can change. The idea is to help automate the
forwarding of the emails - its a generic email account that we're working
with if you haven't guessed.









  #3  
Old June 8th 07, 03:05 PM posted to microsoft.public.outlook.program_vba
dch3
external usenet poster
 
Posts: 105
Default Iterating through multiple items selected in a mailbox

Thx.

....and I believe that you helped me out sometime ago with using a TreeView
control in Access. Still using the code and works like a charm.

"Dmitry Streblechenko" wrote:

Use the Application.ActiveExplorer.Selection collection

Dmitry Streblechenko (MVP)
http://www.dimastr.com/
OutlookSpy - Outlook, CDO
and MAPI Developer Tool

"dch3" wrote in message
...
Just doing a bit of discover at the moment as this came up in a what-if
converstation this morning...

When a user has selected multiple items in an inbox, how can I iterate
through each using code?

We're discussing implementing custom code that iterates through the items
that a user has selected in an mailbox and then forward each item selected
to
an email account as a separate item. Using right-click forward is not an
option as it would the items as attachments to a single email. Selecting a
single message and then clicking forward is not an option due to the
volume
of emails that we're working with. Rules aren't an option since the person
who will receive the emails can change. The idea is to help automate the
forwarding of the emails - its a generic email account that we're working
with if you haven't guessed.










 




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
Outlook Limit of 100 Selected Mail Items? [email protected] Outlook - General Queries 0 May 17th 07 02:35 PM
Outlook - one msg selected, multiple messages deleted [email protected] Outlook - General Queries 0 September 4th 06 03:46 PM
showing only selected items in a shared group calendar Christine Outlook - Calandaring 3 August 16th 06 08:22 PM
Iterating through outloook emails c_shah Outlook and VBA 1 August 10th 06 05:49 AM
Outlook 2003 doesn't show number of selected items RD Outlook - Installation 1 March 2nd 06 09:47 PM


All times are GMT +1. The time now is 06:01 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.