Automatic ENTER.

Rumburak

Banned
Joined
Aug 28, 2018
Messages
36
Howdy,

Column A has name.
In column B I have a formula that lists all the names that contain the letter / letters entered in cell D2.
I need a VBA code to display my name in column B without having to press enter after each letter entered in D2.

Eg. I write a letter - let's say - the letter a, and without pressing enter to list all those names that contain the letter a
If I write - let's say - letters need to display all the names that contain these letters, but if I delete the letter c to display only the names containing the letter a.
Some kind of automatic ENTER.

Thank you.
 
Last edited:

Excel Facts

Copy formula down without changing references
If you have =SUM(F2:F49) in F50; type Alt+' in F51 to copy =SUM(F2:F49) to F51, leaving the formula in edit mode. Change SUM to COUNT.
.
It sounds like you need to utilize the : Private Sub Worksheet_SelectionChange(ByVal Target As Range) or Private Sub Worksheet_Change(ByVal Target As Range)

depending on your code and the ultimate goal.

More specifically, are you wanting to search Column A for names that match what you are entering in D2 ? There could be one name or maybe more than one name depending on
what is entered ?
 
Upvote 0
.
It sounds like you need to utilize the : Private Sub Worksheet_SelectionChange(ByVal Target As Range) or Private Sub Worksheet_Change(ByVal Target As Range)

depending on your code and the ultimate goal.

More specifically, are you wanting to search Column A for names that match what you are entering in D2 ? There could be one name or maybe more than one name depending on
what is entered ?

Yes. This is what I want.


My current file contains, in column 1, column A, about 500 names.
In column B, I have a formula that lists those names that contain the letter / letters that are typed in cell D2.
If a code can be made that lists the names containing the letter / letters that are typed in cell D2 then we can quit the formula in column B.

Thank you.
 
Upvote 0
Alternative to the formula in the FILTER column:

{=--OR(ISNUMBER(SEARCH($G$1, SearchTable[@[Name]:[Car]])))}
 
Upvote 0
Thank you both of you.
I can't use helper column. From column C to BK we have data with many connection.

We need to simulate - pressing ENTER key - after we write/delete any character in D2, with VBA code.

Thank you.
 
Upvote 0
There are 16,231 columns to the right of BK. Why can't you use one of them?
 
Upvote 0

Forum statistics

Threads
1,224,823
Messages
6,181,181
Members
453,022
Latest member
Mohamed Magdi Tawfiq Emam

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top