![]() |
| 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. |
|
|||||||
| Tags: sorting |
|
|
Thread Tools | Display Modes |
|
#1
|
|||
|
|||
|
I am trying to sort the messages in my inbox before working with them
in VBA. I am using objInbox.Items.Sort "[Subject]" No errors occur but when using objInbox.Items.Item(1).Display i still get the first item sorted by time received rather than subject. Any ideas? |
| Ads |
|
#2
|
|||
|
|||
|
You need to instantiate an explicit Items collection:
Set itms = objInbox.Items itms.Sort "[Subject]" itms.Item(1).Display -- Sue Mosher, Outlook MVP Author of Configuring Microsoft Outlook 2003 http://www.turtleflock.com/olconfig/index.htm and Microsoft Outlook Programming - Jumpstart for Administrators, Power Users, and Developers http://www.outlookcode.com/jumpstart.aspx "vortex2k4" wrote in message oups.com... I am trying to sort the messages in my inbox before working with them in VBA. I am using objInbox.Items.Sort "[Subject]" No errors occur but when using objInbox.Items.Item(1).Display i still get the first item sorted by time received rather than subject. Any ideas? |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Outlook sorting | rouble@gmail.com | Outlook - General Queries | 3 | March 3rd 06 03:51 PM |
| Sorting Rules | CJM | Outlook - General Queries | 2 | February 18th 06 10:33 PM |
| Sorting doesn't work | Peter Kim | Outlook - Using Contacts | 3 | February 15th 06 05:31 PM |
| grouping and sorting | Stuart | Outlook - Using Contacts | 2 | February 9th 06 08:11 PM |
| grouping / sorting | Stuart | Outlook - Using Contacts | 2 | February 4th 06 12:43 PM |