#1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 30
Default Search request

I would like to be able to do a search by pressing a key on the keyboard and
having Excel position to the first cell in the selected column that begins
with the character of the key pressed. Kind of like in Windows Explorer

Does anyone have a macro to do this or is there another way
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 206
Default Search request

On Feb 17, 5:57*pm, GregNga wrote:
I would like to be able to do a search by pressing a key on the keyboard and
having Excel position to the first cell in the selected column that begins
with the character of the key pressed. Kind of like in Windows Explorer

Does anyone have a macro to do this or is there another way


This would go into the worksheet module

Private Sub Worksheet_Change(ByVal Target As Range)
If Target.Address = "$A$1" Then
Dim f As Range
Set f = Range("A2:A65536").Find(Target, LookIn:=xlValues)
If Not f Is Nothing Then
f.Select
End If
End If
End Sub

enter something to look for in A1 and it will select the first value
in column A after A1
It has issues though...
if you enter 1 in A1 and press enter, it will select the first cell in
Column A with a 1 in it.

Maybe you are thinking of an auto fill, like with a ComboBox ? if so
maybe supply some more info...
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
Faster Re-crawl/Re-Cache Request and Webpage/Search Result RemovalOptions Rakin Excel Discussion (Misc queries) 1 December 11th 07 04:40 PM
Request Barry Excel Discussion (Misc queries) 1 January 5th 07 06:20 AM
Request chsjk Excel Worksheet Functions 1 January 31st 06 07:40 PM
sql.request teepee Excel Discussion (Misc queries) 2 December 30th 05 01:34 PM
How do I search excel spreadsheets using multiple search criteria. Kasper Excel Worksheet Functions 4 December 15th 05 12:26 AM


All times are GMT +1. The time now is 03:44 PM.

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"