How to create a "goto" box?

touque

Board Regular
Joined
Jan 22, 2009
Messages
107
I have a sheet listing over 200 individuals and their balances. When I want to look at someone's balance with a name such as Wood I have to scroll down over 200 rows.
Can I have box on one of the top rows where I can enter the starting letter and the sheet will automatically go to the first cell starting with the entered letter.
 

Excel Facts

Excel Can Read to You
Customize Quick Access Toolbar. From All Commands, add Speak Cells or Speak Cells on Enter to QAT. Select cells. Press Speak Cells.
Why not use the built in Find function that is on the Ribbon on the Home Tab at the far right.
 
Upvote 0
For sure that would work but looking for something a little "prettier"!
Something that is right on the page.
I tried to see if I could somehow have the "Find" function permanently open as that would suffice. I have room to the side.
Any other options?
 
Upvote 0
Is VBA an option? We can either create a userform and have it show automatically when you open the workbook....or....code it to open the "Find" dialog when you open the workbook.
 
Upvote 0
I'm a little green in regards to code. Created a couple with help from this form. But willing to learn.
How would you suggest to set this up?
 
Upvote 0
Depends on which one you prefer. Opening the "find" dialog when you select that worksheet is as easy as:

-Rick click on the tab of that sheet.
-Click "View Code"
-Paste the following into the white area on the right.

Code:
Private Sub Worksheet_Activate()

Application.Dialogs(xlDialogFormulaFind).Show

End Sub

A userform would be a little more work, but still doable.

And it would naturally go away before you change tabs (or change anything else for that matter) because that dialog is non-modal (I think it's "non")...either way, it takes over everything until you close it.
 
Last edited:
Upvote 0
How about selecting the name from a Combobox.
Assuming the list of names are in column A
And the balances are in column B
We could have a script display the balance in a Message Box
Not needing to go down the sheet to see the balance


Create a activex Combobox named Combobox1
Create a activex Command button named Command Button 1

The command button will load all the names in Column A into the Combobox
Then when you select a name from the combobox you will get a message box displaying the balance

And install these scripts in those buttons:

Code:
Private Sub ComboBox1_Click()
Dim SearchString As String
Dim SearchRange As Range
Dim Lastrow As Long
Lastrow = Cells(Rows.Count, "A").End(xlUp).Row
SearchString = ComboBox1.Value
Set SearchRange = Range("A1:A" & Lastrow).Find(SearchString, LookIn:=xlValues, lookat:=xlWhole)
If SearchRange Is Nothing Then MsgBox "Not Found"
ans = SearchRange.Offset(, 1).Value
MsgBox SearchString & "  Balance is  " & ans
End Sub

Code:
Private Sub CommandButton1_Click()
ComboBox1.Clear
Dim Lastrow As Long
Lastrow = Cells(Rows.Count, "A").End(xlUp).Row
ComboBox1.List = Range("A1:A" & Lastrow).Value
End Sub
 
Last edited:
Upvote 0
Depends on which one you prefer. Opening the "find" dialog when you select that worksheet is as easy as:

-Rick click on the tab of that sheet.
-Click "View Code"
-Paste the following into the white area on the right.

Code:
Private Sub Worksheet_Activate()

Application.Dialogs(xlDialogFormulaFind).Show

End Sub

A userform would be a little more work, but still doable.

And it would naturally go away before you change tabs (or change anything else for that matter) because that dialog is non-modal (I think it's "non")...either way, it takes over everything until you close it.

A Userform can be open and you still be able to work on your worksheet.
Open your userform like this:
UserForm1.Show Modeless
 
Upvote 0

Forum statistics

Threads
1,223,904
Messages
6,175,295
Members
452,631
Latest member
a_potato

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top