File > Options > Customize Ribbon > Developers
Developer > Visual Basic > Sheet1 > Insert > Module
You can do this using the HYPERLINK() formula.
For example if you have “https://google.com/search?q=hyperlinks” in (eg) C2 and you have this formula in D2 then clicking on “View” will open the url from C2 using IE:
=HYPERLINK("#ShowInIE(""" & C2 & """)","View")
Put this function in a regular module
'This function called from worksheet HYPERLINK() formula Function ShowInIE(url) As Range Dim ie As Object On Error Resume Next Set ie = GetObject("", "InternetExplorer.Application") 'get open iE? On Error GoTo 0 'if was not open then open a new instance If ie Is Nothing Then Set ie = CreateObject("InternetExplorer.Application") ie.Visible = True ie.navigate url Set ShowInIE = Selection 'must do this in a function called from a hyplerlink End Function
Save my name, email, and website in this browser for the next time I comment.