Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Macro to jump from the find box to found item

Is it possible to program a macro that would allow me to
jump from the find box to the cell of the found item after
I do a find and even better would be to jump to a location
that would be two columns to the left of the found value.

For example I type "3876" in the find box so then I want
to jump to a position on the sheet 2 columns to the left
of the 3876.

This is for a highly repeatable data entry task that will
be ongoing.

Thanks Todd
  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2,337
Default Macro to jump from the find box to found item

try this
Sub gotoselection()
x = Cells.Find(InputBox("Enter number to find")).Address
Application.Goto reference:=Range(x).Offset(, 2)
End Sub

"Todd" wrote in message
...
Is it possible to program a macro that would allow me to
jump from the find box to the cell of the found item after
I do a find and even better would be to jump to a location
that would be two columns to the left of the found value.

For example I type "3876" in the find box so then I want
to jump to a position on the sheet 2 columns to the left
of the 3876.

This is for a highly repeatable data entry task that will
be ongoing.

Thanks Todd



  #4   Report Post  
Posted to microsoft.public.excel.programming
No Name
 
Posts: n/a
Default Macro to jump from the find box to found item

Thanks but instead of jumping to the 2 left of the item
positon I need it jumps to the right of the found item by
2 spaces

Also when I run it it pops up a dialog box - I need it to
read the number in the find dialog box then jump directly
to the found item location - well 2 columns to the left of
the found item on the sheet.

Thanks
-----Original Message-----
try this
Sub gotoselection()
x = Cells.Find(InputBox("Enter number to find")).Address
Application.Goto reference:=Range(x).Offset(, 2)
End Sub

"Todd" wrote in

message
...
Is it possible to program a macro that would allow me to
jump from the find box to the cell of the found item

after
I do a find and even better would be to jump to a

location
that would be two columns to the left of the found

value.

For example I type "3876" in the find box so then I want
to jump to a position on the sheet 2 columns to the left
of the 3876.

This is for a highly repeatable data entry task that

will
be ongoing.

Thanks Todd



.

  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2,337
Default Macro to jump from the find box to found item

What I sent precludes the need for the find dialog box.
If you want it to move 2 cells to the LEFT, then change the ,2 to ,-2

Maybe I didn't understand your needs. Perhaps more detail would be helpful.

wrote in message
...
Thanks but instead of jumping to the 2 left of the item
positon I need it jumps to the right of the found item by
2 spaces

Also when I run it it pops up a dialog box - I need it to
read the number in the find dialog box then jump directly
to the found item location - well 2 columns to the left of
the found item on the sheet.

Thanks
-----Original Message-----
try this
Sub gotoselection()
x = Cells.Find(InputBox("Enter number to find")).Address
Application.Goto reference:=Range(x).Offset(, 2)
End Sub

"Todd" wrote in

message
...
Is it possible to program a macro that would allow me to
jump from the find box to the cell of the found item

after
I do a find and even better would be to jump to a

location
that would be two columns to the left of the found

value.

For example I type "3876" in the find box so then I want
to jump to a position on the sheet 2 columns to the left
of the 3876.

This is for a highly repeatable data entry task that

will
be ongoing.

Thanks Todd



.





  #6   Report Post  
Posted to microsoft.public.excel.programming
No Name
 
Posts: n/a
Default Macro to jump from the find box to found item

WOW - WAY COOL THANKS MUCH - I EVEN CAN HIT FIND BUTTON
AND THE LAST NUMBER POPS UP IN IT WHEN I NEED TO DO A FIND
ALL

GREATLY APPRECIATE THE TIME
-----Original Message-----
What I sent precludes the need for the find dialog box.
If you want it to move 2 cells to the LEFT, then change

the ,2 to ,-2

Maybe I didn't understand your needs. Perhaps more detail

would be helpful.

wrote in message
...
Thanks but instead of jumping to the 2 left of the item
positon I need it jumps to the right of the found item

by
2 spaces

Also when I run it it pops up a dialog box - I need it

to
read the number in the find dialog box then jump

directly
to the found item location - well 2 columns to the left

of
the found item on the sheet.

Thanks
-----Original Message-----
try this
Sub gotoselection()
x = Cells.Find(InputBox("Enter number to

find")).Address
Application.Goto reference:=Range(x).Offset(, 2)
End Sub

"Todd" wrote in

message
...
Is it possible to program a macro that would allow

me to
jump from the find box to the cell of the found item

after
I do a find and even better would be to jump to a

location
that would be two columns to the left of the found

value.

For example I type "3876" in the find box so then I

want
to jump to a position on the sheet 2 columns to the

left
of the 3876.

This is for a highly repeatable data entry task that

will
be ongoing.

Thanks Todd


.



.

  #7   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2,337
Default Macro to jump from the find box to found item

Glad to help. But you don't have to SHOUT about it.
Again, maybe your chores could be greatly shortened with an explanation of
what you are trying to do.

wrote in message
...
WOW - WAY COOL THANKS MUCH - I EVEN CAN HIT FIND BUTTON
AND THE LAST NUMBER POPS UP IN IT WHEN I NEED TO DO A FIND
ALL

GREATLY APPRECIATE THE TIME
-----Original Message-----
What I sent precludes the need for the find dialog box.
If you want it to move 2 cells to the LEFT, then change

the ,2 to ,-2

Maybe I didn't understand your needs. Perhaps more detail

would be helpful.

wrote in message
...
Thanks but instead of jumping to the 2 left of the item
positon I need it jumps to the right of the found item

by
2 spaces

Also when I run it it pops up a dialog box - I need it

to
read the number in the find dialog box then jump

directly
to the found item location - well 2 columns to the left

of
the found item on the sheet.

Thanks
-----Original Message-----
try this
Sub gotoselection()
x = Cells.Find(InputBox("Enter number to

find")).Address
Application.Goto reference:=Range(x).Offset(, 2)
End Sub

"Todd" wrote in
message
...
Is it possible to program a macro that would allow

me to
jump from the find box to the cell of the found item
after
I do a find and even better would be to jump to a
location
that would be two columns to the left of the found
value.

For example I type "3876" in the find box so then I

want
to jump to a position on the sheet 2 columns to the

left
of the 3876.

This is for a highly repeatable data entry task that
will
be ongoing.

Thanks Todd


.



.



  #8   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 48
Default thanks worked great

thank you it works great - i just did not understand -
having posting trouble
-----Original Message-----
What I sent precludes the need for the find dialog box.
If you want it to move 2 cells to the LEFT, then change

the ,2 to ,-2

Maybe I didn't understand your needs. Perhaps more detail

would be helpful.

wrote in message
...
Thanks but instead of jumping to the 2 left of the item
positon I need it jumps to the right of the found item

by
2 spaces

Also when I run it it pops up a dialog box - I need it

to
read the number in the find dialog box then jump

directly
to the found item location - well 2 columns to the left

of
the found item on the sheet.

Thanks
-----Original Message-----
try this
Sub gotoselection()
x = Cells.Find(InputBox("Enter number to

find")).Address
Application.Goto reference:=Range(x).Offset(, 2)
End Sub

"Todd" wrote in

message
...
Is it possible to program a macro that would allow

me to
jump from the find box to the cell of the found item

after
I do a find and even better would be to jump to a

location
that would be two columns to the left of the found

value.

For example I type "3876" in the find box so then I

want
to jump to a position on the sheet 2 columns to the

left
of the 3876.

This is for a highly repeatable data entry task that

will
be ongoing.

Thanks Todd


.



.

  #9   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Macro to jump from the find box to found item

Don,
this is exactly what i was looking for today ! thank you -
one question, how can i add a FIND ANOTHER or FIND NEXT
selection, so if the person types in a number and there
are multiples in the column they can continue looking from
there on.
thank you again!


-----Original Message-----
try this
Sub gotoselection()
x = Cells.Find(InputBox("Enter number to find")).Address
Application.Goto reference:=Range(x).Offset(, 2)
End Sub

"Todd" wrote in

message
...
Is it possible to program a macro that would allow me to
jump from the find box to the cell of the found item

after
I do a find and even better would be to jump to a

location
that would be two columns to the left of the found

value.

For example I type "3876" in the find box so then I want
to jump to a position on the sheet 2 columns to the left
of the 3876.

This is for a highly repeatable data entry task that

will
be ongoing.

Thanks Todd



.

  #10   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2,337
Default Macro to jump from the find box to found item

It was right there, staring you in the face when you went to vbe help index
and typed in FIND..
Modify to suit
With Worksheets(1).Range("a1:a500")
Set c = .Find(2, lookin:=xlValues)
If Not c Is Nothing Then
firstAddress = c.Address
Do
c.Value = 5
Set c = .FindNext(c)
Loop While Not c Is Nothing And c.Address < firstAddress
End If
End With
"KAUG" wrote in message
...
Don,
this is exactly what i was looking for today ! thank you -
one question, how can i add a FIND ANOTHER or FIND NEXT
selection, so if the person types in a number and there
are multiples in the column they can continue looking from
there on.
thank you again!


-----Original Message-----
try this
Sub gotoselection()
x = Cells.Find(InputBox("Enter number to find")).Address
Application.Goto reference:=Range(x).Offset(, 2)
End Sub

"Todd" wrote in

message
...
Is it possible to program a macro that would allow me to
jump from the find box to the cell of the found item

after
I do a find and even better would be to jump to a

location
that would be two columns to the left of the found

value.

For example I type "3876" in the find box so then I want
to jump to a position on the sheet 2 columns to the left
of the 3876.

This is for a highly repeatable data entry task that

will
be ongoing.

Thanks Todd



.





  #11   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 6
Default Macro to jump from the find box to found item

Dare I ask is there a way to get the active cell that I
goto with the use of your incredible macro that will
position the active cell approximately mid screen or
atleast at almost mid screen so I can read what is above
and below the active looked up cell for a few rows.

thanks
-----Original Message-----
What I sent precludes the need for the find dialog box.
If you want it to move 2 cells to the LEFT, then change

the ,2 to ,-2

Maybe I didn't understand your needs. Perhaps more detail

would be helpful.

wrote in message
...
Thanks but instead of jumping to the 2 left of the item
positon I need it jumps to the right of the found item

by
2 spaces

Also when I run it it pops up a dialog box - I need it

to
read the number in the find dialog box then jump

directly
to the found item location - well 2 columns to the left

of
the found item on the sheet.

Thanks
-----Original Message-----
try this
Sub gotoselection()
x = Cells.Find(InputBox("Enter number to

find")).Address
Application.Goto reference:=Range(x).Offset(, 2)
End Sub

"Todd" wrote in

message
...
Is it possible to program a macro that would allow

me to
jump from the find box to the cell of the found item

after
I do a find and even better would be to jump to a

location
that would be two columns to the left of the found

value.

For example I type "3876" in the find box so then I

want
to jump to a position on the sheet 2 columns to the

left
of the 3876.

This is for a highly repeatable data entry task that

will
be ongoing.

Thanks Todd


.



.

  #12   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 576
Default Macro to jump from the find box to found item

Todd,

Try this:

Application.GoTo Reference:=Range(ActiveCell.Offset(-5, -6).Address),
Scroll:=True

(correct for word wrap)

Change the -5 and the -6 to get the centering you would like.

--
sb
"todd" wrote in message
...
Dare I ask is there a way to get the active cell that I
goto with the use of your incredible macro that will
position the active cell approximately mid screen or
atleast at almost mid screen so I can read what is above
and below the active looked up cell for a few rows.

thanks
-----Original Message-----
What I sent precludes the need for the find dialog box.
If you want it to move 2 cells to the LEFT, then change

the ,2 to ,-2

Maybe I didn't understand your needs. Perhaps more detail

would be helpful.

wrote in message
...
Thanks but instead of jumping to the 2 left of the item
positon I need it jumps to the right of the found item

by
2 spaces

Also when I run it it pops up a dialog box - I need it

to
read the number in the find dialog box then jump

directly
to the found item location - well 2 columns to the left

of
the found item on the sheet.

Thanks
-----Original Message-----
try this
Sub gotoselection()
x = Cells.Find(InputBox("Enter number to

find")).Address
Application.Goto reference:=Range(x).Offset(, 2)
End Sub

"Todd" wrote in
message
...
Is it possible to program a macro that would allow

me to
jump from the find box to the cell of the found item
after
I do a find and even better would be to jump to a
location
that would be two columns to the left of the found
value.

For example I type "3876" in the find box so then I

want
to jump to a position on the sheet 2 columns to the

left
of the 3876.

This is for a highly repeatable data entry task that
will
be ongoing.

Thanks Todd


.



.



  #13   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 6
Default Macro to jump from the find box to found item

Thank you - I have to confess I have been away from vba
for awhile and I am not to advanced to begin with - may I
ask how to work that into the code below

Thank Todd

Sub gotoselection()
x = Cells.Find(InputBox("Enter number to find")).Address
Application.Goto reference:=Range(x).Offset(, -2)
End Sub

-----Original Message-----
Todd,

Try this:

Application.GoTo Reference:=Range(ActiveCell.Offset(-5, -

6).Address),
Scroll:=True

(correct for word wrap)

Change the -5 and the -6 to get the centering you would

like.

--
sb
"todd" wrote in message
...
Dare I ask is there a way to get the active cell that I
goto with the use of your incredible macro that will
position the active cell approximately mid screen or
atleast at almost mid screen so I can read what is above
and below the active looked up cell for a few rows.

thanks
-----Original Message-----
What I sent precludes the need for the find dialog box.
If you want it to move 2 cells to the LEFT, then change

the ,2 to ,-2

Maybe I didn't understand your needs. Perhaps more

detail
would be helpful.

wrote in message
...
Thanks but instead of jumping to the 2 left of the

item
positon I need it jumps to the right of the found

item
by
2 spaces

Also when I run it it pops up a dialog box - I need

it
to
read the number in the find dialog box then jump

directly
to the found item location - well 2 columns to the

left
of
the found item on the sheet.

Thanks
-----Original Message-----
try this
Sub gotoselection()
x = Cells.Find(InputBox("Enter number to

find")).Address
Application.Goto reference:=Range(x).Offset(, 2)
End Sub

"Todd" wrote

in
message
...
Is it possible to program a macro that would allow

me to
jump from the find box to the cell of the found

item
after
I do a find and even better would be to jump to a
location
that would be two columns to the left of the found
value.

For example I type "3876" in the find box so then

I
want
to jump to a position on the sheet 2 columns to

the
left
of the 3876.

This is for a highly repeatable data entry task

that
will
be ongoing.

Thanks Todd


.



.



.

  #14   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 576
Default Macro to jump from the find box to found item

Todd,

This placed the offset cell in the upper left corner of the screen.
The code opens an input box for the value to find and than positions the
screen. Set -6 to the number of rows above, and -2 to the number of
columns to the left. It also avoids an errors if the offset is off the
screen.

Dim x As String
x = Cells.Find(InputBox("Enter number to find")).Address
On Error Resume Next
Application.Goto reference:=Range(x).Offset(-6, -2), Scroll:=True
On Error GoTo 0

--
sb
"todd" wrote in message
...
Thank you - I have to confess I have been away from vba
for awhile and I am not to advanced to begin with - may I
ask how to work that into the code below

Thank Todd

Sub gotoselection()
x = Cells.Find(InputBox("Enter number to find")).Address
Application.Goto reference:=Range(x).Offset(, -2)
End Sub

-----Original Message-----
Todd,

Try this:

Application.GoTo Reference:=Range(ActiveCell.Offset(-5, -

6).Address),
Scroll:=True

(correct for word wrap)

Change the -5 and the -6 to get the centering you would

like.

--
sb
"todd" wrote in message
...
Dare I ask is there a way to get the active cell that I
goto with the use of your incredible macro that will
position the active cell approximately mid screen or
atleast at almost mid screen so I can read what is above
and below the active looked up cell for a few rows.

thanks
-----Original Message-----
What I sent precludes the need for the find dialog box.
If you want it to move 2 cells to the LEFT, then change
the ,2 to ,-2

Maybe I didn't understand your needs. Perhaps more

detail
would be helpful.

wrote in message
...
Thanks but instead of jumping to the 2 left of the

item
positon I need it jumps to the right of the found

item
by
2 spaces

Also when I run it it pops up a dialog box - I need

it
to
read the number in the find dialog box then jump
directly
to the found item location - well 2 columns to the

left
of
the found item on the sheet.

Thanks
-----Original Message-----
try this
Sub gotoselection()
x = Cells.Find(InputBox("Enter number to
find")).Address
Application.Goto reference:=Range(x).Offset(, 2)
End Sub

"Todd" wrote

in
message
...
Is it possible to program a macro that would allow
me to
jump from the find box to the cell of the found

item
after
I do a find and even better would be to jump to a
location
that would be two columns to the left of the found
value.

For example I type "3876" in the find box so then

I
want
to jump to a position on the sheet 2 columns to

the
left
of the 3876.

This is for a highly repeatable data entry task

that
will
be ongoing.

Thanks Todd


.



.



.



  #15   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 172
Default Macro to jump from the find box to found item

Chip Pearson has devloped a routine for this. The coding is somewhat
complex, but the application is easy. He has good instructions.

http://www.cpearson.com/excel/zoom.htm#center

HTH
Paul
--------------------------------------------------------------------------------------------------------------
Be advised to back up your WorkBook before attempting to make changes.
--------------------------------------------------------------------------------------------------------------

Dare I ask is there a way to get the active cell that I
goto with the use of your incredible macro that will
position the active cell approximately mid screen or
atleast at almost mid screen so I can read what is above
and below the active looked up cell for a few rows.

thanks


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
Macro to ask for a item# and then show all details for that item Durai Excel Discussion (Misc queries) 5 December 4th 09 08:17 PM
To find rate of each item from item.xls and to copy price.xls pol Excel Discussion (Misc queries) 7 July 16th 09 12:49 AM
How do I know on which worksheet an item is found? Talar Excel Discussion (Misc queries) 2 June 21st 06 11:56 AM
Make typing "jump" to matching item(s) in drop-down list? Kathy Excel Discussion (Misc queries) 4 November 22nd 05 10:25 PM
Jump to the item in a list as the first letter is pressed Kiran Excel Discussion (Misc queries) 2 June 29th 05 10:25 AM


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