Drop down list hyperlink

D

DVAL

How to make Drop down list (Form Control - Combo box)
with names of worksheets and HYPERLINK to that worksheets in the same
workbook.

SO, I want to pick one name from Drop down list and that worksheet then
opens!

Sorry for bad English :(

Does anybody know?
Thank you for reading this especially if you are able to help me out on
this.
 
D

DVAL

Thanx on that, but I need something simplest.
I tried with
Sub DropDown1_Change()
If DropDown1.Value = "1" Then
Sheets("Ivan").Select
ElseIf DropDown1.Value = "2" Then
Sheets("Marko").Select
ElseIf DropDown1.Value = "3" Then
Sheets("Pero").Select
End If

End Sub
in VBA but I'm new in VBA.
I got Error '424'
Object required :(
 
C

CellShocked

Can you not simply make a list of hyperlinks, and then mark and name
that listed range, and then refer to the named range when you do the drop
down list box dialog?
 
D

DVAL

I tried, but is not working.

Now I know to do this something similar with Data Validation
Private Sub Worksheet_Change(ByVal Target As Range)
If Target.Address = "$H$4" Then
Select Case Target.Value
Case "Ivan"
Sheets("Ivan").Activate
Case "Marko"
Sheets("Marko").Activate
Case "Pero"
Sheets("Pero").Activate
End Select
End If
End Sub

and with Active X combo box
Private Sub ComboBox1_Change()
Sheet2.Activate
Select Case ComboBox1.Value
Case "Ivan": Sheet2.Range("B4").Select
Case "Marko": Sheet2.Range("B6").Select
Case "Pero": Sheet2.Range("B8").Select
End Select
End Sub


but I don't know how to edit this Active VBA because this link is only for
Sheet no2
:(
 

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

Top