Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
Is a search box possible?
I have pages upon pages of names with data connected to it in different tables. Is there a way to create a textbox or something of that sort, that can be used as a search w/o opening find? -- DarklyCute1 ------------------------------------------------------------------------ DarklyCute1's Profile: http://www.excelforum.com/member.php...o&userid=35949 View this thread: http://www.excelforum.com/showthread...hreadid=560810 |
#2
Posted to microsoft.public.excel.programming
|
|||
|
|||
Is a search box possible?
Turn on the macro recorder, then do Edit=find with an argument that can be
found turn off the macro recorder Now look at the code. You can replace the . . . cell.Find(what:="constant", . . . with . . . cells.find(what:=Textbox1.Text, . . . or use any variable holding the value to search for also, instead of . . . cells.Find(. . .).Activate use Dim rng as Range set rng = cells.find(. . . ) if not rng is nothing then ' rng now holds a reference to the found cell else ' value wasn't found end if Using the Find method does not display the find dialog. Make sure you set all the parameters appropriately, since many of them are persistent and will inherit the current setting if you don't specify it. This can cause inconsistent and mysterious results. -- Regards, Tom Ogilvy "DarklyCute1" wrote: I have pages upon pages of names with data connected to it in different tables. Is there a way to create a textbox or something of that sort, that can be used as a search w/o opening find? -- DarklyCute1 ------------------------------------------------------------------------ DarklyCute1's Profile: http://www.excelforum.com/member.php...o&userid=35949 View this thread: http://www.excelforum.com/showthread...hreadid=560810 |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Functions (search within search result) reply to this please | Excel Worksheet Functions | |||
Functions (search within search result) | Excel Worksheet Functions | |||
How do I search excel spreadsheets using multiple search criteria. | Excel Worksheet Functions | |||
I cant do a search on this forum. Everytime I search, it comes up with zero results | Excel Programming | |||
Create a search Field within a worksheet to search command buttons | Excel Programming |