Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Search by rows and then go to selected row...in a frame?

Hi all,

I have an excel workbook that has a split frame in the middle of the page.
The top has instructions and the bottom has a few hundred rows of data. I'd
like to create a search function in the top frame that enables me to type a
name, click a button (or hit enter), and have the bottom frame move to the
appropriate row.

I found some good code by Tom Ogilvy for returning a row as a result of a
search (code below)...but I'm not sure how to move the focus of JUST the
lower frame.

Any help? Or even links to suggested reading?
Thank you!
Dave

Code:
(From Tom Ogilvy, as posted he
http://www.microsoft.com/office/comm...=en-us&m=1&p=1 )
Dim rng as Range, rng1 as Range
set rng = Cells.find(Userform1.Textbox1)
if not rng is nothing then
set rng1 = rng.entirerow
End if

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default Search by rows and then go to selected row...in a frame?

Dim rng as Range, rng1 as Range
set rng = Cells.find(Userform1.Textbox1)
if not rng is nothing then
set rng1 = rng.entirerow
activewindow.Panes(2).ScrollRow = rng1.row
End if

--
Regards,
Tom Ogilvy




"Dave Linsalata" <Dave wrote in message
...
Hi all,

I have an excel workbook that has a split frame in the middle of the page.
The top has instructions and the bottom has a few hundred rows of data.

I'd
like to create a search function in the top frame that enables me to type

a
name, click a button (or hit enter), and have the bottom frame move to the
appropriate row.

I found some good code by Tom Ogilvy for returning a row as a result of a
search (code below)...but I'm not sure how to move the focus of JUST the
lower frame.

Any help? Or even links to suggested reading?
Thank you!
Dave

Code:
(From Tom Ogilvy, as posted he

http://www.microsoft.com/office/comm...=en-us&m=1&p=1 )
Dim rng as Range, rng1 as Range
set rng = Cells.find(Userform1.Textbox1)
if not rng is nothing then
set rng1 = rng.entirerow
End if



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Search by rows and then go to selected row...in a frame?

Thanks Tom! Will try it out later...but I'm sure it will work.

"Tom Ogilvy" wrote:

Dim rng as Range, rng1 as Range
set rng = Cells.find(Userform1.Textbox1)
if not rng is nothing then
set rng1 = rng.entirerow
activewindow.Panes(2).ScrollRow = rng1.row
End if

--
Regards,
Tom Ogilvy




"Dave Linsalata" <Dave wrote in message
...
Hi all,

I have an excel workbook that has a split frame in the middle of the page.
The top has instructions and the bottom has a few hundred rows of data.

I'd
like to create a search function in the top frame that enables me to type

a
name, click a button (or hit enter), and have the bottom frame move to the
appropriate row.

I found some good code by Tom Ogilvy for returning a row as a result of a
search (code below)...but I'm not sure how to move the focus of JUST the
lower frame.

Any help? Or even links to suggested reading?
Thank you!
Dave

Code:
(From Tom Ogilvy, as posted he

http://www.microsoft.com/office/comm...=en-us&m=1&p=1 )
Dim rng as Range, rng1 as Range
set rng = Cells.find(Userform1.Textbox1)
if not rng is nothing then
set rng1 = rng.entirerow
End if




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
Color alternate rows when after hiding selected rows Monk[_2_] Excel Worksheet Functions 6 June 7th 08 01:36 AM
save search settings having all tabs selected-or entire workbook Kens Excel Worksheet Functions 0 February 28th 07 09:36 PM
how many rows did I selected Paul Ho Excel Worksheet Functions 1 November 26th 05 06:59 AM
How to attach legend frame to chart frame? holg3r Charts and Charting in Excel 2 July 7th 05 11:41 PM
HELP,how to show search result according to specifed criteria and selected fields Kortrijker Excel Programming 2 February 16th 04 02:31 PM


All times are GMT +1. The time now is 11:07 AM.

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"