Creating a GO button for a drop-down list

audiudo

New Member
Joined
Apr 28, 2011
Messages
2
Hello, I have created a drop-down list using the validation tool in Excel 2007. The list is not hyperlinked to pages within the sheet.

I want to add a GO button to take you to the page within the workbook from the drop-down list.

I added the button but I don't know how to add the coding for the button to correspond to the list selection, or what the coding might be.

Thank you in advance for your help.
 

Excel Facts

Last used cell?
Press Ctrl+End to move to what Excel thinks is the last used cell.
Probably something like this ( The code is in a regular module):

Assuming your validation is in cell A2

Code:
Sub GotoSheet()

Dim ShtName As String

ShtName = Range("A2").Value

Sheets(ShtName).Select

End Sub


Just change the ref to suit.

Nigel.
 
Upvote 0

Forum statistics

Threads
1,224,587
Messages
6,179,738
Members
452,940
Latest member
Lawrenceiow

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