Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 12
Default How do I set up a drop down list to beginning letter of item?

I have created a drop down list in Excel and I want to be able to type the
letter K and it go to those items in the list that begin with K. Does anyone
know how I can set this up?
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 142
Default How do I set up a drop down list to beginning letter of item?

Kerri, place any button ( or autoshape ) into your sheet
copy the Sub below
rightclick on the tab of the sheet
paste the sub into the module

Go back to your button or autoshape
right click on it
select Assign Macro ( now this macro will run when the shape is clicked)
choose the one you just pasted in

replace "sheet1" with the name of your current worksheet
replace "FindThis" with the cell you want to match ( your dropdown window
cell)
And replace the "LookHere" with the column you want to look in
You can designate a column (pref col A... insert one if you need to )
type the letter( col A ) at the beginning of your list (in col B)

col A col B

A Adams
Afrin
Agnes
B Bailey
Barnes
Beetle
etc......


HTH


Sub GoFindThis()
Dim myFind As Integer
Dim rng As Range
myFind = Worksheets("sheet1").Range("FindThis").Value
Set rng = Worksheets("sheet1").Range( _
"LookHere").Find(myFind, _
LookIn:=xlValues, LookAt:=xlWhole)
If Not rng Is Nothing Then
Application.GoTo rng, True
Else
MsgBox myFind & " You selection was not found"
End If
End Sub




"Kerri" wrote:

I have created a drop down list in Excel and I want to be able to type the
letter K and it go to those items in the list that begin with K. Does anyone
know how I can set this up?

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
Dynamic Drop Down List I''m Still Here Excel Discussion (Misc queries) 5 March 22nd 06 08:46 PM
Advanced Excel Drop down List chriscana Excel Discussion (Misc queries) 4 March 21st 06 01:35 PM
Drop Down List + VLOOKUP Bonbon Excel Worksheet Functions 1 March 12th 06 04:42 PM
multiple select from the drop down list in excel. list in one sheet and drop down in sriramus Excel Discussion (Misc queries) 5 October 27th 05 06:55 PM
automatic color change in cells using a drop down list kennethwt Excel Worksheet Functions 1 January 21st 05 06:37 PM


All times are GMT +1. The time now is 09:52 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"