Go Back   Trackpads Community > General Discussions > Computer and Technology > Microsoft Applications

Microsoft Applications Discussions about Windows and other MS Products such as Office

Reply
 
LinkBack Thread Tools
Old 07-15-2004, 22:23   #1 (permalink)
jiminy_crime
Civilians

 
Default Add a search button to pull text with in a spreadsheet like this forums search button

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/

 
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Trackpads Information
Click to Visit
Old 07-16-2004, 08:55   #2 (permalink)
djssuk
Civilians

 
Default Re: Add a search button to pull text with in a spreadsheet like this forums search button

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/

 
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply

Bookmarks

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
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
[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


Community Information
Options
Quick Options
Trackpads Non-Commercial Ad
Copyright Information Click to Visit
Time
Server Time
All times are GMT -4. The time now is 11:03.
Copyright
Copyright Information
The header is based off of work by Vipixel.com and modified by this site. Trackpads and the Trackpads Logo are both Registered Trademarks of Jason Edwards and cannot be used without prior written permission.  The only exception is as a link back to this site. Trackpads is a private website run by a small legion of volunteers, 3 dogs, 12.5 cats and an army of small, super smart, bio-engineered mice with pointy hats and tutu's. Search Engine Friendly URLs by vBSEO 3.2.0 RC7
Archive Links
Archive Links
Page generated in 0.60796 seconds with 19 queries