Drop down

  • Thread starter Thread starter murray99
  • Start date Start date
M

murray99

I am looking at setting up a dropdown box that when an item from th
list is selected you are automatically jump to that name in th
spreadsheet. Can anyone help
 
Hi
if you have this listbox/dropdown (e.g. create via Data - Validation -
List) with your sheetnames in B1 add the following code to your
worksheet module:

Private Sub Worksheet_Change(ByVal Target As Range)
If Target.Cells.count > 1 Then Exit Sub
If Intersect(Target, Me.Range("B1")) Is Nothing Then Exit Sub
With Target
If .Value <> "" Then
Worksheets(.Value).Activate
End If
End With
End Sub
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top