Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
Bob Bob is offline
external usenet poster
 
Posts: 972
Default Search Goto Feature

I need a Search box at the top of each sheet in a work book to enter a job
number press enter a goto that number in a column (Job Number) since there
are several hundred in that column.(I do not want to go through the Excel
menu)
What code is necessary to do this? Should I insert a text box or something
else?

Thanks,
Bob
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 10,124
Default Search Goto Feature

right click sheet tabview codeinsert this.
Now when you enter your number in cell c1 and touch the enter key you will
go down that column to the address of the number entered. Change C & 3 to
your column.

Private Sub Worksheet_Change(ByVal Target As Range)
If Target.Address < "$C$1" Then Exit Sub
Columns(3).Find(Target).Select
End Sub

--
Don Guillett
SalesAid Software

"Bob" wrote in message
...
I need a Search box at the top of each sheet in a work book to enter a job
number press enter a goto that number in a column (Job Number) since there
are several hundred in that column.(I do not want to go through the Excel
menu)
What code is necessary to do this? Should I insert a text box or something
else?

Thanks,
Bob



  #3   Report Post  
Posted to microsoft.public.excel.programming
Bob Bob is offline
external usenet poster
 
Posts: 972
Default Search Goto Feature

Don, below is what i am using line 3 - Columns(B).Find(Target).Select - does
not work. Why

Private Sub Worksheet_Change(ByVal Target As Range)
If Target.Address < "$B$4" Then Exit Sub
Columns(B).Find(Target).Select
End Sub

"Don Guillett" wrote:

right click sheet tabview codeinsert this.
Now when you enter your number in cell c1 and touch the enter key you will
go down that column to the address of the number entered. Change C & 3 to
your column.

Private Sub Worksheet_Change(ByVal Target As Range)
If Target.Address < "$C$1" Then Exit Sub
Columns(3).Find(Target).Select
End Sub

--
Don Guillett
SalesAid Software

"Bob" wrote in message
...
I need a Search box at the top of each sheet in a work book to enter a job
number press enter a goto that number in a column (Job Number) since there
are several hundred in that column.(I do not want to go through the Excel
menu)
What code is necessary to do this? Should I insert a text box or something
else?

Thanks,
Bob




  #6   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 10,124
Default Search Goto Feature

This will work if you followed instructions to place in the sheet module.
did you put in a regular module?

Private Sub Worksheet_Change(ByVal Target As Range)
If Target.Address < "$B$1" Then Exit Sub
Columns(2).Find(Target).Select
End Sub


--
Don Guillett
SalesAid Software

"Bob" wrote in message
...
The code stops on this line every time. Any suggestions?

"Don Guillett" wrote:

columns("b") or columns(2)


--
Don Guillett
SalesAid Software

"Bob" wrote in message
...
Don, below is what i am using line 3 -
Columns(B).Find(Target).Select -
does
not work. Why

Private Sub Worksheet_Change(ByVal Target As Range)
If Target.Address < "$B$4" Then Exit Sub
Columns(B).Find(Target).Select
End Sub

"Don Guillett" wrote:

right click sheet tabview codeinsert this.
Now when you enter your number in cell c1 and touch the enter key you
will
go down that column to the address of the number entered. Change C &
3
to
your column.

Private Sub Worksheet_Change(ByVal Target As Range)
If Target.Address < "$C$1" Then Exit Sub
Columns(3).Find(Target).Select
End Sub

--
Don Guillett
SalesAid Software

"Bob" wrote in message
...
I need a Search box at the top of each sheet in a work book to enter
a
job
number press enter a goto that number in a column (Job Number) since
there
are several hundred in that column.(I do not want to go through the
Excel
menu)
What code is necessary to do this? Should I insert a text box or
something
else?

Thanks,
Bob








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 and Goto Dgwood90 Excel Discussion (Misc queries) 1 September 28th 07 01:57 AM
Search feature in workbook nkt122866 Excel Worksheet Functions 0 September 14th 05 10:24 PM
Search feature Merie Excel Programming 1 October 29th 04 11:26 PM
search or goto command needed. mightymax Excel Programming 1 July 26th 04 03:42 AM
If search criteria is not found, then goto Repeat? PCLIVE Excel Programming 2 March 5th 04 07:52 PM


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