borderAndreaVB free resources for Visual Basic developersborder

borderAndreaVB Visual Basic and VB.NET source code resources - Copyright © 1999-2007 Andrea Tincaniborder

AndreaVB | Forum | News | Downloads | Register | Help | Member List | Statistics | Search | PM | Profile

Print This Topic
Previous Topic (please help  ---- isMissing)Next Topic (just so simple but can\'t figure out) New Topic New Poll Post Reply
AndreaVB Forum : VBA (Access, Excel, Word, ...) : command button to find text on another sheet
Poster Message
runningcatdog
Level: Trainee

Registered: 21-10-2005
Posts: 1

icon command button to find text on another sheet

On the first page of my workbook I have command buttons that activate a cell on a specified sheet in the book. I would like to change the code on the buttons so they activate a sheet then look for a word in column b and activate that cell when found. Any help would be appreciated.

21-10-2005 at 12:50 AM
View Profile Send Email to User Show All Posts | Quote Reply
neutrall
Level: Master


Registered: 28-03-2004
Posts: 122
icon Re: command button to find text on another sheet

This could be a easy way to do it.
Sub Find_Word()

    Dim InWord As String     'Word to search
    
    InWord = InputBox("Enter the word your searching here", "Search")
    Cells.Find(What:=InWord, After:=ActiveCell, LookIn:=xlValues, LookAt:=xlPart, SearchOrder:=xlByColumns, SearchDirection:=xlNext, MatchCase:=False).Activate
    
End Sub


____________________________
A Stick give a wise man something to think about... and a fool, something to put in is mouth.

22-10-2005 at 01:14 AM
View Profile Send Email to User Show All Posts Visit Homepage ICQ | Quote Reply
AndreaVB Forum : VBA (Access, Excel, Word, ...) : command button to find text on another sheet
Previous Topic (please help  ---- isMissing)Next Topic (just so simple but can\'t figure out) New Topic New Poll Post Reply
Surf To:


Not Logged In? Username: Password: Lost your password?
Partners: Download Actual Software | Free Software Download
borderAndreaVB free resources for Visual Basic developersborder

borderAndreaVB Visual Basic and VB.NET source code resources - Copyright © 1999-2007 Andrea Tincaniborder