Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 23
Default Glorified search function

Hello,

I hope that someone can help me. I am trying to create a search
function that searches through a single column on the following
manner.

Column A:

Beach Boys
Beatles
Dire Straits



When the user enters (into either a cell or a form, cell probably
easiest) a letter the macro must search for words starting with that
letter, when the user enters another letter the search must refine
that list.

For example:

If the user enters "b"

Beach Boys
Beatles

will be displayed.

When the user enters "beat"

Then only Beatles will be displayed. Expect the macro must happen
without the user pressing a button, ie, just when the user enters the
search string/letter into a cell then the search function must kick
in.

You know iTunes? Well, pretty much like the iTunes search function.

Thanks....

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 23
Default Glorified search function

On Mar 26, 2:48 pm, "kaiser" wrote:
Hello,

I hope that someone can help me. I am trying to create a search
function that searches through a single column on the following
manner.

Column A:

Beach Boys
Beatles
Dire Straits

When the user enters (into either a cell or a form, cell probably
easiest) a letter the macro must search for words starting with that
letter, when the user enters another letter the search must refine
that list.

For example:

If the user enters "b"

Beach Boys
Beatles

will be displayed.

When the user enters "beat"

Then only Beatles will be displayed. Expect the macro must happen
without the user pressing a button, ie, just when the user enters the
search string/letter into a cell then the search function must kick
in.

You know iTunes? Well, pretty much like the iTunes search function.

Thanks....


Just for further clarity - I have written a macro that does the above
when the cell value has changed, but I want to ahve the search
function run as EACH BUTTON IS PRESSED and not when enter is pressed
(ie, when the cell value is changed)

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 4,391
Default Glorified search function

This will not work from a cell, as macros cannot run when in Edit mode.
Put the code to fire when a text box changes instead. A userform maybe
easier.

NickHK

"kaiser" wrote in message
oups.com...
On Mar 26, 2:48 pm, "kaiser" wrote:
Hello,

I hope that someone can help me. I am trying to create a search
function that searches through a single column on the following
manner.

Column A:

Beach Boys
Beatles
Dire Straits

When the user enters (into either a cell or a form, cell probably
easiest) a letter the macro must search for words starting with that
letter, when the user enters another letter the search must refine
that list.

For example:

If the user enters "b"

Beach Boys
Beatles

will be displayed.

When the user enters "beat"

Then only Beatles will be displayed. Expect the macro must happen
without the user pressing a button, ie, just when the user enters the
search string/letter into a cell then the search function must kick
in.

You know iTunes? Well, pretty much like the iTunes search function.

Thanks....


Just for further clarity - I have written a macro that does the above
when the cell value has changed, but I want to ahve the search
function run as EACH BUTTON IS PRESSED and not when enter is pressed
(ie, when the cell value is changed)



  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 184
Default Glorified search function

maybe the user should press enter whenever he wants to start filtering,
the macro should filter and then edit the cell by pressing F2 so that
the user can add characters to the string press enter etc. etc.

something like

Sub Makro1()

'your code here

Range("C8").Select
SendKeys "{F2}"
End Sub

arno

  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 812
Default Glorified search function

Put a ComboBox on a UserForm. Set its RowSource property to your list.
Set its MatchEntry property to 1.

Hth,
Merjet

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
Search Function TerryR Excel Discussion (Misc queries) 3 February 17th 09 09:32 AM
Search Function Manos Excel Worksheet Functions 1 March 12th 08 11:39 AM
Search function. the_intern Excel Worksheet Functions 2 August 3rd 06 11:40 AM
Search function Haim Excel Discussion (Misc queries) 1 July 21st 06 08:30 PM
a search function jacko Excel Worksheet Functions 1 June 1st 05 12:51 PM


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