Home |
Search |
Today's Posts |
#1
![]() |
|||
|
|||
![]()
I want to insert a Find Command Button in a spreadsheet so a user can click
on the button to go directly to a specific line. thanks.. |
#2
![]() |
|||
|
|||
![]()
Hi
Try this example for column A This will select the first cell in column A with the InputBox value. Sub Find_First() Dim FindString As String Dim Rng As Range FindString = InputBox("Enter a Search value") If Trim(FindString) < "" Then Set Rng = Range("A:A").Find(What:=FindString, _ After:=Range("A" & Rows.Count), _ LookIn:=xlFormulas, _ LookAt:=xlWhole, _ SearchOrder:=xlByRows, _ SearchDirection:=xlNext, _ MatchCase:=False) If Not Rng Is Nothing Then Application.Goto Rng, True Else MsgBox "Nothing found" End If End If End Sub -- Regards Ron de Bruin http://www.rondebruin.nl "NeedMorHP" wrote in message ... I want to insert a Find Command Button in a spreadsheet so a user can click on the button to go directly to a specific line. thanks.. |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
How do I find the cell address of the 2nd largest of a set? | Excel Discussion (Misc queries) | |||
Edit + Find | Excel Discussion (Misc queries) | |||
Using the Find tool in EXCEL | Excel Worksheet Functions | |||
Excel has a "Find Next" command but no "Find Previous" command. | Excel Discussion (Misc queries) | |||
VB Find and Replace | Excel Worksheet Functions |