#1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2
Default Sorting Validation

I have a dynamic validation list new entries will be entered here
continuously, but what i want is the drop down list to come sorted
alphabetically also when the linked list is no longer alphabetical? Could
anybody help?

Thanks
Marten
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 3,290
Default Sorting Validation

Marten,

If your list of entries is a named range, then new entries inserted into it
will automatically adjust the range. So if your Validation list cell was "E5"
and the list was named "MyList" then the following event code in the
sheet module might do what you want...

Private Sub Worksheet_SelectionChange(ByVal Target As Range)
If Target.Address = "$E$5" Then Range("MyList").Sort Range("MyList")
End Sub
--
Jim Cone
San Francisco, USA
http://www.realezsites.com/bus/primitivesoftware



"Marten"

wrote in message
I have a dynamic validation list new entries will be entered here
continuously, but what i want is the drop down list to come sorted
alphabetically also when the linked list is no longer alphabetical? Could
anybody help?

Thanks
Marten
Reply
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
data validation mattdsc Excel Worksheet Functions 4 July 26th 06 11:30 AM
Data validation with hyperlinks [email protected] Excel Worksheet Functions 1 June 8th 06 07:34 PM
data validation lists [email protected] Excel Discussion (Misc queries) 5 June 25th 05 07:44 PM
named range, data validation: list non-selected items, and new added items KR Excel Discussion (Misc queries) 1 June 24th 05 05:21 AM
Data Validation Window? Ken Excel Discussion (Misc queries) 1 January 11th 05 10:48 PM


All times are GMT +1. The time now is 10:48 AM.

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"