![]() | ![]() | ![]() |
| |||||||
| Forums | Register | Groups | Awards | Arcade | Pets | T-Bucks / T-Store | Invite Your Friends | Blogs | Mark Forums Read |
| Microsoft Applications Discussions about Windows and other MS Products such as Office |
![]() |
| | LinkBack | Thread Tools |
| | #1 (permalink) |
| Civilians | I want to know how to add a search button to microsoft excel similar to this forums that pull up specific text. This is for a big business project. --- Message posted from http://www.ExcelForum.com/ |
|
| | #2 (permalink) |
| Civilians | This works for me when associated with a button. Dim wks As Worksheet Dim rng As Range Dim strAddress As String, strFind As String strFind = InputBox("Please enter search reference:") For Each wks In Worksheets Set rng = wks.Cells.Find(strFind, lookat:=xlWhole, LookIn:=xlFormulas) If Not rng Is Nothing Then strAddress = rng.Address Do Application.Goto rng, True If MsgBox("Continue Searching?", vbYesNo + vbQuestion) = vbNo Then Exit Sub Set rng = Cells.FindNext(after:=ActiveCell) If rng.Address = strAddress Then Exit Do Loop End If Next wks --- Message posted from http://www.ExcelForum.com/ |
|
![]() |
| Bookmarks |
| Thread Tools | |
| |
Similar Threads | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| [News Feed] MSN Search Toolbar Gets Contextual Search Add-in | Forum Mouse | News Articles | 0 | 09-23-2005 22:00 |
| search a text cell CONTAINING matching text in a dynamic range (not exact match) | msgoldcup@gmail.com | Microsoft Applications | 2 | 07-19-2005 16:00 |
| find for any of some search texts within a text | xirx | Microsoft Applications | 1 | 06-15-2005 20:00 |
| text search for a non-constant value? | xirx | Microsoft Applications | 6 | 06-01-2005 12:00 |
| Search Engine in an Excel SpreadSheet | Gary A | Microsoft Applications | 5 | 06-15-2004 16:56 |
![]() | ![]() | ![]() |