{"id":803,"date":"2025-03-17T23:50:18","date_gmt":"2025-03-17T16:50:18","guid":{"rendered":"https:\/\/tisdoc.com\/?p=803"},"modified":"2025-03-17T23:50:18","modified_gmt":"2025-03-17T16:50:18","slug":"excels-open-link-in-ie","status":"publish","type":"post","link":"https:\/\/tisdoc.com\/?p=803","title":{"rendered":"Excels open link in IE"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\"><strong>File > Options > Customize Ribbon > Developers<\/strong><\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Developer > Visual Basic > Sheet1 > Insert > Module<\/strong><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">You can do this using the HYPERLINK() formula.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">For example if you have &#8220;https:\/\/google.com\/search?q=hyperlinks&#8221; in (eg) C2 and you have this formula in D2 then clicking on &#8220;View&#8221; will open the url from C2 using IE:<\/p>\n\n\n\n<pre class=\"has-copy-button language-javascript\" style=\"position: relative;\" class=\"wp-block-code\"><code>=HYPERLINK(\"#ShowInIE(\"\"\" &amp; C2 &amp; \"\"\")\",\"View\")<\/code><button class=\"copy-button\"><i class=\"fa-regular fa-copy\"><\/i><\/button><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Put this function in a regular module<\/p>\n\n\n\n<pre class=\"has-copy-button language-javascript\" style=\"position: relative;\" class=\"wp-block-code\"><code>'This function called from worksheet HYPERLINK() formula\nFunction ShowInIE(url) As Range\n    Dim ie As Object\n    On Error Resume Next\n    Set ie = GetObject(\"\", \"InternetExplorer.Application\") 'get open iE?\n    On Error GoTo 0\n    'if was not open then open a new instance\n    If ie Is Nothing Then Set ie = CreateObject(\"InternetExplorer.Application\")\n    ie.Visible = True\n    ie.navigate url\n    Set ShowInIE = Selection 'must do this in a function called from a hyplerlink\nEnd Function<\/code><button class=\"copy-button\"><i class=\"fa-regular fa-copy\"><\/i><\/button><\/pre>\n","protected":false},"excerpt":{"rendered":"<p>File > Options > Customize Ribbon > Developers Developer > Visual Basic > Sheet1 > Insert > Module You can do this using the HYPERLINK() formula. For example if you have &#8220;https:\/\/google.com\/search?q=hyperlinks&#8221; in (eg) C2 and you have this formula in D2 then clicking on &#8220;View&#8221; will open the url from C2 using IE: Put [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-803","post","type-post","status-publish","format-standard","hentry","category-uncategorized","no-post-thumbnail"],"_links":{"self":[{"href":"https:\/\/tisdoc.com\/index.php?rest_route=\/wp\/v2\/posts\/803","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/tisdoc.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/tisdoc.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/tisdoc.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/tisdoc.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=803"}],"version-history":[{"count":1,"href":"https:\/\/tisdoc.com\/index.php?rest_route=\/wp\/v2\/posts\/803\/revisions"}],"predecessor-version":[{"id":804,"href":"https:\/\/tisdoc.com\/index.php?rest_route=\/wp\/v2\/posts\/803\/revisions\/804"}],"wp:attachment":[{"href":"https:\/\/tisdoc.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=803"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/tisdoc.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=803"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/tisdoc.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=803"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}