LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2,253
Default Sorting in a ComboBox

Shauna

try:

Dim objSpace As Outlook.NameSpace
Dim objItems As Outlook.Items
Dim objItm As Object 'folder can contain multiple types...

Set objItems = objSpace.GetFolderFromID(cbxFolders.Value).Items
objItems.Sort ("Company")



keepITcool

< email : keepitcool chello nl (with @ and .)
< homepage: http://members.chello.nl/keepitcool


"Shauna Koppang" wrote:

I have a ComboBox whose contents comes from the company
field in Outlook in a Public Folder Contact type folder.
The folder contents in Outlook are sorted based on Company
in ascending order. When the ComboBox is displayed in the
workbook the names in the list are not in alphabetic
order. Any suggestions on how I can get them in order?

Thanks!

Shauna


 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
ComboBox Chris Excel Worksheet Functions 3 June 8th 09 03:22 PM
fill combobox depending on selection from another combobox Adam Francis Excel Discussion (Misc queries) 2 July 24th 08 07:39 PM
combobox value flow23 Excel Discussion (Misc queries) 0 April 26th 06 12:21 PM
Combobox M Excel Discussion (Misc queries) 1 March 7th 05 10:29 AM
combobox jim c Excel Programming 1 August 13th 03 02:16 AM


All times are GMT +1. The time now is 05:23 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"