Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
How can I add a search box to a spreadsheet whereby:
- User types name in cell (say, cell D1 and then button assigned to macro is clicked) - Column A is queried for value typed in D1 - Value matched in Column A is selected Thanks. EU |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
You can do something like this:
'Code for command button click event Private Sub CommandButton1_Click() Set FindIt = ActiveSheet.Range("A1:A" & ActiveSheet.Range("A65536").End(xlUp).Row).Find(Tr im (ActiveSheet.Range("D1").Value)) If Not FindIt Is Nothing Then ActiveSheet.Range (FindIt.Address).Select End Sub tod -----Original Message----- How can I add a search box to a spreadsheet whereby: - User types name in cell (say, cell D1 and then button assigned to macro is clicked) - Column A is queried for value typed in D1 - Value matched in Column A is selected Thanks. EU . |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
adding a search box to a spreadsheet | Excel Worksheet Functions | |||
How can you search by column or row within a spreadsheet? | Excel Worksheet Functions | |||
Search for TRUE in spreadsheet | Excel Discussion (Misc queries) | |||
Search Spreadsheet for a name | Excel Discussion (Misc queries) | |||
FAQ Spreadsheet with search function | Excel Discussion (Misc queries) |