Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.newusers
external usenet poster
 
Posts: 1
Default How can I select an item in a drop down ?

I have a long list in my drop down sorted in alpha. How can I select a
letter that will bring me to the list starting with that letter?
  #2   Report Post  
Posted to microsoft.public.excel.newusers
external usenet poster
 
Posts: 22,906
Default How can I select an item in a drop down ?

From a posting by Howard Kittle............................

You can get close to that. Sort your validation lists and at the beginning
of the A's enter a single A, do the same for the beginning of the B's and
all the way through to the Z's.

Click in the cell that has the drop down validation and type in the letter
of the list you desire... say you type in an O. DO NOT hit enter... leave
the cell in the edit mode (still selected) and now hit your down arrow.

Should take you to the O which is the top of the O list of selections.


HTH
Regards,
Howard
...............................................

If you have a very long list with many alphas you may want to sort the list
and add the first letter via macro.

Copy your list to column A...........adjust code if another column

Sub Alpha_Isert()

Dim iRow As Long
Dim FirstRow As Long
Dim LastRow As Long
Columns("A:A").Select
Selection.Sort Key1:=Range("A1"), Order1:=xlAscending, Header:=xlGuess, _
OrderCustom:=1, MatchCase:=False, Orientation:=xlTopToBottom, _
DataOption1:=xlSortNormal

FirstRow = 1
LastRow = Cells(Rows.Count, "A").End(xlUp).Row

For iRow = LastRow To FirstRow Step -1
If Left(Cells(iRow, "A").Value, 1) < _
Left(Cells(iRow - 1, "A").Value, 1) Then
Rows(iRow).Insert
With Cells(iRow, "A")
.Value = UCase(Left(Cells(iRow + 1, "A").Value, 1))
End With
End If
Next
End Sub


Gord Dibben MS Excel MVP


On Wed, 9 Sep 2009 15:52:01 -0700, sonnynvangie
wrote:

I have a long list in my drop down sorted in alpha. How can I select a
letter that will bring me to the list starting with that letter?


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
How do I select more than one item from a drop down pick list? Greg Excel Discussion (Misc queries) 2 January 16th 08 10:43 PM
How do I select more than one item from a drop down pick list? Greg Excel Worksheet Functions 1 January 16th 08 03:08 PM
How to select a listed item? Eric Excel Worksheet Functions 3 August 11th 07 02:20 AM
How can I allow a user to select more than 1 drop down item? stlblackbeltsmom Excel Worksheet Functions 2 December 18th 06 05:30 PM
How select an item in a list box jamie81 Excel Worksheet Functions 1 May 31st 05 09:53 AM


All times are GMT +1. The time now is 07:57 AM.

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

About Us

"It's about Microsoft Excel"