![]() |
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. |
|
|
Thread Tools | Search this Thread | Display Modes |
#1
|
|||
|
|||
![]()
If I want to use VBA to get the count and text of selected items within the current folder, what would be some syntax possibilities?
For example, the user selects items 1, 7, 12, 17, 21, 23-29, and 35, in preparation to take an action on those items (i.e. delete, move, etc.), how would I get the count, and the text to those items, if I wanted to save the count and text in a couple of variables for future use? -- Thanks, Dennis |
Ads |
#2
|
|||
|
|||
![]()
Application.ActiveExplorer.Selection is the collection of all selected items. Selection.Count gives you the count. Iterate the collection to return each item in turn. If you plan to move or delete, use a countdown For ... Next loop.
-- Sue Mosher, Outlook MVP Author of Microsoft Outlook 2007 Programming: Jumpstart for Power Users and Administrators http://www.outlookcode.com/article.aspx?id=54 "DENNIS BROWN" wrote in message . .. If I want to use VBA to get the count and text of selected items within the current folder, what would be some syntax possibilities? For example, the user selects items 1, 7, 12, 17, 21, 23-29, and 35, in preparation to take an action on those items (i.e. delete, move, etc.), how would I get the count, and the text to those items, if I wanted to save the count and text in a couple of variables for future use? -- Thanks, Dennis |
#3
|
|||
|
|||
![]()
Works great! Thanks.
-- Thanks, Dennis "Sue Mosher [MVP-Outlook]" wrote in message ... Application.ActiveExplorer.Selection is the collection of all selected items. Selection.Count gives you the count. Iterate the collection to return each item in turn. If you plan to move or delete, use a countdown For ... Next loop. -- Sue Mosher, Outlook MVP Author of Microsoft Outlook 2007 Programming: Jumpstart for Power Users and Administrators http://www.outlookcode.com/article.aspx?id=54 "DENNIS BROWN" wrote in message . .. If I want to use VBA to get the count and text of selected items within the current folder, what would be some syntax possibilities? For example, the user selects items 1, 7, 12, 17, 21, 23-29, and 35, in preparation to take an action on those items (i.e. delete, move, etc.), how would I get the count, and the text to those items, if I wanted to save the count and text in a couple of variables for future use? -- Thanks, Dennis |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Iterating through multiple items selected in a mailbox | dch3 | Outlook and VBA | 2 | June 8th 07 04:05 PM |
Outlook Limit of 100 Selected Mail Items? | [email protected] | Outlook - General Queries | 0 | May 17th 07 03:35 PM |
selected receiver of mail | armando | Outlook - Using Forms | 1 | December 15th 06 12:17 AM |
showing only selected items in a shared group calendar | Christine | Outlook - Calandaring | 3 | August 16th 06 09:22 PM |
Outlook 2003 doesn't show number of selected items | RD | Outlook - Installation | 1 | March 2nd 06 10:47 PM |