Home |
Search |
Today's Posts |
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Let's say you are managing your list in column J and that you have settup
your validation by: Data Validation allow List and point to column J Then in worksheet code enter: Sub Worksheet_Change(ByVal Target As Excel.Range) If Intersect(Range("J:J"), Target) Is Nothing Then Exit Sub Application.EnableEvents = False Columns("J:J").Select Selection.Sort Key1:=Range("J1"), Order1:=xlAscending Application.EnableEvents = True End Sub This code will detect entries in column J and automatically re-sort the column. Your validation list will always be in alphabetic order. Just remember that the macro must go in worksheet code. -- Gary's Student "Glice" wrote: I have a moving list which is the source of validation. I estimated that I would be using 120 items which are not yet all known. When a new item is entered, I need to re-sort the list alphabetically so that the names that will appear on the drop down box of the validation would be alphabetized. Is there any method by which the names in the list and/or in the dropdown box would be automatically alphabetized as new items are entered in the list? Anyone, please help me. |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
ALPHABETIZE WORKSHEETS AUTOMATICALLY | Excel Worksheet Functions | |||
Validation List with Value to pop up automatically | Excel Worksheet Functions | |||
alphabetize - automatically | Excel Worksheet Functions | |||
Is there a way to have a excel automatically alphabetize a sheet? | Excel Discussion (Misc queries) | |||
need to program my lists to automatically alphabetize when new ent | Excel Worksheet Functions |