Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 34
Default Search and select a cell when pressing enter

I want to make a some kind of CTRL-F field in my sheet.

If the text (or a part of the text) in cell F1 is found in row A then
select the cell with the text where it was found.
And when I'm in the cell F1, I prefer just to press 'enter' instead of
clicking on a button.

Does somebody have an example?

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 10,124
Default Search and select a cell when pressing enter


right click the sheet tabview codeleft window select worksheetright
window select worksheet_changeput your FIND code there

--
Don Guillett
Microsoft MVP Excel
SalesAid Software

"bartman1980" wrote in message
ups.com...
I want to make a some kind of CTRL-F field in my sheet.

If the text (or a part of the text) in cell F1 is found in row A then
select the cell with the text where it was found.
And when I'm in the cell F1, I prefer just to press 'enter' instead of
clicking on a button.

Does somebody have an example?


  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 34
Default Search and select a cell when pressing enter

On 20 aug, 14:17, "Don Guillett" wrote:
right click the sheet tabview codeleft window select worksheetright
window select worksheet_changeput your FIND code there

--
Don Guillett
Microsoft MVP Excel
SalesAid Software
"bartman1980" wrote in message

ups.com...



I want to make a some kind of CTRL-F field in my sheet.


If the text (or a part of the text) in cell F1 is found in row A then
select the cell with the text where it was found.
And when I'm in the cell F1, I prefer just to press 'enter' instead of
clicking on a button.


Does somebody have an example?- Tekst uit oorspronkelijk bericht niet weergeven -


- Tekst uit oorspronkelijk bericht weergeven -


I know how to get in the VBA editor, but do you have this FIND code
for me?

  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 34
Default Search and select a cell when pressing enter

On 20 aug, 17:07, "Don Guillett" wrote:
Easy to do it for you but why not look in the vba help index for FIND

--
Don Guillett
Microsoft MVP Excel
SalesAid Software
"bartman1980" wrote in message

ups.com...



On 20 aug, 14:17, "Don Guillett" wrote:
right click the sheet tabview codeleft window select worksheetright
window select worksheet_changeput your FIND code there


--
Don Guillett
Microsoft MVP Excel
SalesAid Software
"bartman1980" wrote in
message


roups.com...


I want to make a some kind of CTRL-F field in my sheet.


If the text (or a part of the text) in cell F1 is found in row A then
select the cell with the text where it was found.
And when I'm in the cell F1, I prefer just to press 'enter' instead of
clicking on a button.


Does somebody have an example?- Tekst uit oorspronkelijk bericht niet
weergeven -


- Tekst uit oorspronkelijk bericht weergeven -


I know how to get in the VBA editor, but do you have this FIND code
for me?- Tekst uit oorspronkelijk bericht niet weergeven -


- Tekst uit oorspronkelijk bericht weergeven -


Hi Don,
I looked in the Help and I've made this code:

Sub searching()
string_searchvalue = Range("F1")
Columns("A:A").Find(What:=string_searchvalue,
After:=ActiveCell).Activate
End Sub

But this code doesn't combine numbers and letters with eachother.
And when He finds nothing, he gives an error, so I have to add an IF
nothing found then show message box "Nothing found"

I Also couldn't find the option of pressing enter instead of clicking
on the button.

Can you give me a hint?
At least I'm trying.



  #6   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 10,124
Default Search and select a cell when pressing enter


Examples of your data and what you are trying to find.
Have you tried recording a macro while doing a manual find from the edit
menu?

--
Don Guillett
Microsoft MVP Excel
SalesAid Software

"bartman1980" wrote in message
oups.com...
On 20 aug, 17:07, "Don Guillett" wrote:
Easy to do it for you but why not look in the vba help index for FIND

--
Don Guillett
Microsoft MVP Excel
SalesAid Software
"bartman1980" wrote in
message

ups.com...



On 20 aug, 14:17, "Don Guillett" wrote:
right click the sheet tabview codeleft window select worksheetright
window select worksheet_changeput your FIND code there


--
Don Guillett
Microsoft MVP Excel
SalesAid Software
"bartman1980" wrote
in
message


roups.com...


I want to make a some kind of CTRL-F field in my sheet.


If the text (or a part of the text) in cell F1 is found in row A
then
select the cell with the text where it was found.
And when I'm in the cell F1, I prefer just to press 'enter' instead
of
clicking on a button.


Does somebody have an example?- Tekst uit oorspronkelijk bericht
niet
weergeven -


- Tekst uit oorspronkelijk bericht weergeven -


I know how to get in the VBA editor, but do you have this FIND code
for me?- Tekst uit oorspronkelijk bericht niet weergeven -


- Tekst uit oorspronkelijk bericht weergeven -


Hi Don,
I looked in the Help and I've made this code:

Sub searching()
string_searchvalue = Range("F1")
Columns("A:A").Find(What:=string_searchvalue,
After:=ActiveCell).Activate
End Sub

But this code doesn't combine numbers and letters with eachother.
And when He finds nothing, he gives an error, so I have to add an IF
nothing found then show message box "Nothing found"

I Also couldn't find the option of pressing enter instead of clicking
on the button.

Can you give me a hint?
At least I'm trying.


  #7   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 10,124
Default Search and select a cell when pressing enter

Try this. I tried with aaa23

Why do you need to "activate". You rarely need to select or activate. You
could use .copy for instance.

Sub searchA()
Columns(1).Find(Range("f1")).Activate
End Sub

--
Don Guillett
Microsoft MVP Excel
SalesAid Software

"bartman1980" wrote in message
oups.com...
On 20 aug, 17:07, "Don Guillett" wrote:
Easy to do it for you but why not look in the vba help index for FIND

--
Don Guillett
Microsoft MVP Excel
SalesAid Software
"bartman1980" wrote in
message

ups.com...



On 20 aug, 14:17, "Don Guillett" wrote:
right click the sheet tabview codeleft window select worksheetright
window select worksheet_changeput your FIND code there


--
Don Guillett
Microsoft MVP Excel
SalesAid Software
"bartman1980" wrote
in
message


roups.com...


I want to make a some kind of CTRL-F field in my sheet.


If the text (or a part of the text) in cell F1 is found in row A
then
select the cell with the text where it was found.
And when I'm in the cell F1, I prefer just to press 'enter' instead
of
clicking on a button.


Does somebody have an example?- Tekst uit oorspronkelijk bericht
niet
weergeven -


- Tekst uit oorspronkelijk bericht weergeven -


I know how to get in the VBA editor, but do you have this FIND code
for me?- Tekst uit oorspronkelijk bericht niet weergeven -


- Tekst uit oorspronkelijk bericht weergeven -


Hi Don,
I looked in the Help and I've made this code:

Sub searching()
string_searchvalue = Range("F1")
Columns("A:A").Find(What:=string_searchvalue,
After:=ActiveCell).Activate
End Sub

But this code doesn't combine numbers and letters with eachother.
And when He finds nothing, he gives an error, so I have to add an IF
nothing found then show message box "Nothing found"

I Also couldn't find the option of pressing enter instead of clicking
on the button.

Can you give me a hint?
At least I'm trying.


  #8   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 34
Default Search and select a cell when pressing enter

On 21 aug, 15:33, "Don Guillett" wrote:
Try this. I tried with aaa23

Why do you need to "activate". You rarely need to select or activate. You
could use .copy for instance.

Sub searchA()
Columns(1).Find(Range("f1")).Activate
End Sub

--
Don Guillett
Microsoft MVP Excel
SalesAid Software
"bartman1980" wrote in message

oups.com...



On 20 aug, 17:07, "Don Guillett" wrote:
Easy to do it for you but why not look in the vba help index for FIND


--
Don Guillett
Microsoft MVP Excel
SalesAid Software
"bartman1980" wrote in
message


roups.com...


On 20 aug, 14:17, "Don Guillett" wrote:
right click the sheet tabview codeleft window select worksheetright
window select worksheet_changeput your FIND code there


--
Don Guillett
Microsoft MVP Excel
SalesAid Software
"bartman1980" wrote
in
message


roups.com...


I want to make a some kind of CTRL-F field in my sheet.


If the text (or a part of the text) in cell F1 is found in row A
then
select the cell with the text where it was found.
And when I'm in the cell F1, I prefer just to press 'enter' instead
of
clicking on a button.


Does somebody have an example?- Tekst uit oorspronkelijk bericht
niet
weergeven -


- Tekst uit oorspronkelijk bericht weergeven -


I know how to get in the VBA editor, but do you have this FIND code
for me?- Tekst uit oorspronkelijk bericht niet weergeven -


- Tekst uit oorspronkelijk bericht weergeven -


Hi Don,
I looked in the Help and I've made this code:


Sub searching()
string_searchvalue = Range("F1")
Columns("A:A").Find(What:=string_searchvalue,
After:=ActiveCell).Activate
End Sub


But this code doesn't combine numbers and letters with eachother.
And when He finds nothing, he gives an error, so I have to add an IF
nothing found then show message box "Nothing found"


I Also couldn't find the option of pressing enter instead of clicking
on the button.


Can you give me a hint?
At least I'm trying.- Tekst uit oorspronkelijk bericht niet weergeven -


- Tekst uit oorspronkelijk bericht weergeven -


I just want to make a search function for the people who want to
select the right items in the list.
This selection is done by putting manually a 1 in the cell next to it.
The searchfunction you mentioned is only for finding the first item
with the search criteria. After finding the first one, he doesn't
continue to the other ones.

When I try to find 444 the code stops, I need to have a messagebox in
it which says "444 not found"

  #9   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 10,124
Default Search and select a cell when pressing enter

Look in the vba help index for FINDNEXT

--
Don Guillett
Microsoft MVP Excel
SalesAid Software

"bartman1980" wrote in message
ps.com...
On 21 aug, 15:33, "Don Guillett" wrote:
Try this. I tried with aaa23

Why do you need to "activate". You rarely need to select or activate. You
could use .copy for instance.

Sub searchA()
Columns(1).Find(Range("f1")).Activate
End Sub

--
Don Guillett
Microsoft MVP Excel
SalesAid Software
"bartman1980" wrote in
message

oups.com...



On 20 aug, 17:07, "Don Guillett" wrote:
Easy to do it for you but why not look in the vba help index for FIND


--
Don Guillett
Microsoft MVP Excel
SalesAid Software
"bartman1980" wrote
in
message


roups.com...


On 20 aug, 14:17, "Don Guillett" wrote:
right click the sheet tabview codeleft window select
worksheetright
window select worksheet_changeput your FIND code there


--
Don Guillett
Microsoft MVP Excel
SalesAid Software
"bartman1980"
wrote
in
message


roups.com...


I want to make a some kind of CTRL-F field in my sheet.


If the text (or a part of the text) in cell F1 is found in row A
then
select the cell with the text where it was found.
And when I'm in the cell F1, I prefer just to press 'enter'
instead
of
clicking on a button.


Does somebody have an example?- Tekst uit oorspronkelijk bericht
niet
weergeven -


- Tekst uit oorspronkelijk bericht weergeven -


I know how to get in the VBA editor, but do you have this FIND code
for me?- Tekst uit oorspronkelijk bericht niet weergeven -


- Tekst uit oorspronkelijk bericht weergeven -


Hi Don,
I looked in the Help and I've made this code:


Sub searching()
string_searchvalue = Range("F1")
Columns("A:A").Find(What:=string_searchvalue,
After:=ActiveCell).Activate
End Sub


But this code doesn't combine numbers and letters with eachother.
And when He finds nothing, he gives an error, so I have to add an IF
nothing found then show message box "Nothing found"


I Also couldn't find the option of pressing enter instead of clicking
on the button.


Can you give me a hint?
At least I'm trying.- Tekst uit oorspronkelijk bericht niet weergeven -


- Tekst uit oorspronkelijk bericht weergeven -


I just want to make a search function for the people who want to
select the right items in the list.
This selection is done by putting manually a 1 in the cell next to it.
The searchfunction you mentioned is only for finding the first item
with the search criteria. After finding the first one, he doesn't
continue to the other ones.

When I try to find 444 the code stops, I need to have a messagebox in
it which says "444 not found"


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
Get excel to automatically go to the next cell w/o pressing enter AMR Excel Discussion (Misc queries) 2 July 14th 09 04:45 AM
Pressing enter to change cell Stuster Excel Discussion (Misc queries) 2 December 11th 07 04:08 AM
Command button auto select after pressing Enter Bafa[_12_] Excel Programming 3 August 21st 06 07:58 AM
HOW DO I GET THE ANSWER TO A FORMULA BY PRESSING ENTER IN CELL? E-QUIP Excel Discussion (Misc queries) 1 May 31st 06 04:59 PM
select the first cell in the next row down after pressing enter o. Taffy Setting up and Configuration of Excel 1 March 1st 05 06:06 PM


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