VBA to follow Hyperlink

JLouis

Active Member
Joined
Jan 1, 2004
Messages
295
Office Version
  1. 365
Platform
  1. Windows
Hello! I've been able to create a dropdown with an active X control that populates a list of hyperlinks, but when I choose the hyperlink from the dropdown it just shows the name of the sheet and doesn't actually hyperlink to the sheet.

How can I make the selection hyperlink to the selection?

Thanks.

hyper.png
 

Excel Facts

Excel Joke
Why can't spreadsheets drive cars? They crash too often!
Please look at this method. I created a data validation to look at the sheet names list. Then when the cell changes a macro runs to activate that sheet. The Data Validation cell was given a named range of DV.

Book6
GHI
2Data Validiation
3Sheet3Sheet2
4Sheet3
Sheet1
Cells with Data Validation
CellAllowCriteria
G3:H3List=$I$3:$I$4


VBA Code:
Private Sub Worksheet_Change(ByVal Target As Range)
  If Not Intersect(Target, Range("DV")) Is Nothing Then
    Sheets(Range("DV").Value).Activate
  End If
  
End Sub
 
Upvote 0
Solution
Very nice. I was able to incorporate this method successfully. Thank you for the directions.
 
Upvote 0

Forum statistics

Threads
1,215,073
Messages
6,122,975
Members
449,095
Latest member
Mr Hughes

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