Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 6
Default Search box for text

I'm looking for a solution for an item search box for an inventory. I have a
spreadsheet that I need to find "Name of product" and scroll it up to the
bottom of my frozen pane. I've searched the discussions forum and tried
several formulas, non have worked for me.
In my frozen panes view, I'm looking to have a search box to type an item
name in and have excel scroll it up to the bottom of the frozen pane. The
item names are in column "D".
Any takers?????
Thanks, Allan Grates
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 5,934
Default Search box for text

You are not going to be able to do this with formulas since formulas cannot
take any actions (such as scrolling the worksheet), you will need VB for
this. Here is a macro to attach to the button I assume you will have to let
the user be able to signal that they are done typing...

Sub FindAndScrollToItem()
Dim ItemToFind As String
ItemToFind = "Name of product"
ActiveWindow.ScrollRow = Columns("D").Find(ItemToFind, _
After:=Cells(Rows.Count, "D"), _
LookAt:=xlWhole, SearchDirection:=xlNext, _
MatchCase:=False).Row
End Sub

--
Rick (MVP - Excel)


"Allan Grates" wrote in message
...
I'm looking for a solution for an item search box for an inventory. I have
a
spreadsheet that I need to find "Name of product" and scroll it up to the
bottom of my frozen pane. I've searched the discussions forum and tried
several formulas, non have worked for me.
In my frozen panes view, I'm looking to have a search box to type an item
name in and have excel scroll it up to the bottom of the frozen pane. The
item names are in column "D".
Any takers?????
Thanks, Allan Grates


  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 5,934
Default Search box for text

Of course, you should replace this line...

ItemToFind = "Name of product"

with one that pulls the text out of your TextBox. If you tell us where you
got the TextBox from (either the Controls Toolbox toolbar or the Drawing
toolbar) and what the name of the TextBox is, then we could give you the
actual line of code to use.

--
Rick (MVP - Excel)


"Rick Rothstein" wrote in message
...
You are not going to be able to do this with formulas since formulas
cannot take any actions (such as scrolling the worksheet), you will need
VB for this. Here is a macro to attach to the button I assume you will
have to let the user be able to signal that they are done typing...

Sub FindAndScrollToItem()
Dim ItemToFind As String
ItemToFind = "Name of product"
ActiveWindow.ScrollRow = Columns("D").Find(ItemToFind, _
After:=Cells(Rows.Count, "D"), _
LookAt:=xlWhole, SearchDirection:=xlNext, _
MatchCase:=False).Row
End Sub

--
Rick (MVP - Excel)


"Allan Grates" wrote in message
...
I'm looking for a solution for an item search box for an inventory. I
have a
spreadsheet that I need to find "Name of product" and scroll it up to the
bottom of my frozen pane. I've searched the discussions forum and tried
several formulas, non have worked for me.
In my frozen panes view, I'm looking to have a search box to type an item
name in and have excel scroll it up to the bottom of the frozen pane. The
item names are in column "D".
Any takers?????
Thanks, Allan Grates



  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1,071
Default Search box for text

I gave you a response, with a macro, in your previous thread dated 23 Dec.
Otto

"Allan Grates" wrote in message
...
I'm looking for a solution for an item search box for an inventory. I have
a
spreadsheet that I need to find "Name of product" and scroll it up to the
bottom of my frozen pane. I've searched the discussions forum and tried
several formulas, non have worked for me.
In my frozen panes view, I'm looking to have a search box to type an item
name in and have excel scroll it up to the bottom of the frozen pane. The
item names are in column "D".
Any takers?????
Thanks, Allan Grates


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
Nested formula to search a text string and return specific text Barbie Excel Worksheet Functions 10 February 21st 09 07:40 AM
Fun with text functions - search for text mr tom Excel Worksheet Functions 7 October 26th 07 07:17 PM
Search, find or lookup defined text in text string zzxxcc Excel Worksheet Functions 9 September 6th 07 09:37 PM
Search in a text box Michael R Excel Discussion (Misc queries) 0 February 22nd 07 03:28 PM
TEXT SEARCH roy.okinawa Excel Worksheet Functions 11 February 10th 06 03:54 AM


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