Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 18
Default Add Search Box to Spreadsheet

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   Report Post  
Posted to microsoft.public.excel.programming
tod tod is offline
external usenet poster
 
Posts: 114
Default Add Search Box to Spreadsheet

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
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
adding a search box to a spreadsheet Adding a search box to a spreadsheet Excel Worksheet Functions 1 November 30th 08 11:19 PM
How can you search by column or row within a spreadsheet? Brandy Excel Worksheet Functions 5 September 12th 08 05:11 PM
Search for TRUE in spreadsheet Paul Excel Discussion (Misc queries) 2 September 10th 08 01:22 PM
Search Spreadsheet for a name missy Excel Discussion (Misc queries) 2 December 13th 06 11:53 PM
FAQ Spreadsheet with search function murphyz Excel Discussion (Misc queries) 0 March 19th 05 09:24 PM


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