• FollowHyperlink won't open web page.

    Author
    Topic
    #463274

    My default browser is Firefox. But I want to open a particular web site in IE using FollowHyperlink. I can open IE using FollowHyperkink, but appending the web address stopped IE even loading.
    There is a shortcut on my desktop that opens the web page in IE, but transferring that to FollowHyperlink didn’t work.
    The Desktop shortcut target is:
    “C:Program FilesInternet Exploreriexplore.exe” https://xplan2.iress.com.au/riaa.
    I tried this with and without quotes.

    Viewing 1 reply thread
    Author
    Replies
    • #1182121

      Try using the Shell instruction:

      Shell “C:Program FilesInternet Exploreriexplore.exe https://xplan2.iress.com.au/riaa”

      • #1182336

        Try using the Shell instruction:

        Shell “C:Program FilesInternet Exploreriexplore.exe https://xplan2.iress.com.au/riaa”

        Thanks all.
        I have the web addresses in a table and use FollowHyperlink to go to an address when it is selected in a combo box. Some of the web addresses we have to use will only work 100% using IE. For those sites I was trying to use FollowHyperlink to open IE (instead of my default browser – Firefox), and go to the web address. The idea of using Shell is great, but I would need to have another field in the table to act as a key to use Shell instead of FollowHyperlink. Of course I would rather use the same technique for all, but if that’s not possible, then Shell will do.
        Actually, no I wouldn’t would I? I only need to test for the string ‘iexplore’, then use Shell if it exists.
        If you can think of a neater way to do it, let me know. If not then big thanks all round.

        • #1182337

          The easiest option would be to use Shell to open ALL the web addresses in Internet Explorer.

          Otherwise, if it’s OK to include C:Program FilesInternet Exploreriexplore.exe in the address field for those websites that need Internet Explorer, you can use a simple If statement to determine whether to use Shell or FollowHyperlink.

          If you prefer to store only the web addresses in the adress field, you could add a Yes/No field UseIE to the table and set it to Yes for websites that need Internet Explorer. The If statement would test the value of UseIE to determine whether to use Shell or FollowHyperlink.

          • #1182430

            The easiest option would be to use Shell to open ALL the web addresses in Internet Explorer.

            Otherwise, if it’s OK to include C:Program FilesInternet Exploreriexplore.exe in the address field for those websites that need Internet Explorer, you can use a simple If statement to determine whether to use Shell or FollowHyperlink.

            If you prefer to store only the web addresses in the adress field, you could add a Yes/No field UseIE to the table and set it to Yes for websites that need Internet Explorer. The If statement would test the value of UseIE to determine whether to use Shell or FollowHyperlink.

            Problem with Shell is that it opens a new instance of IE every time, whereas FollowHyperlink just opens a new tab.
            Testing for the existence of the string ‘iexplore’, and using Shell if it exits works beautifully.
            Thanks guys, as usual you’re v knowledgeable.

        • #1182343

          I’m assuming that when you say “Some of the web addresses we have to use will only work 100% using IE” that you can open any of the websites using Firefox and the FollowHyperlink method, but they just might not render properly. I’d continue to store the website the way it is, and either use the SHELL function to use IExplore to open all websites, or include a new “MustUseIE” checkbox in your table and then open the website using FollowHyperLink (Firefox) or Shell (using IE).

    • #1182144

      I’m not sure what your problem is, but I don’t think it is Firefox. I can open a link from my application using the FollowHyperlink method, and I use Firefox.

      • #1182148

        I’m not sure what your problem is, but I don’t think it is Firefox. I can open a link from my application using the FollowHyperlink method, and I use Firefox.

        Peter wants to open a website in Internet Explorer while his default browser is Firefox.
        FollowHyperlink will open a website in the default browser, so he needs something else to open it in IE.

        • #1182150

          Peter wants to open a website in Internet Explorer while his default browser is Firefox.
          FollowHyperlink will open a website in the default browser, so he needs something else to open it in IE.

          I took what he said to mean that he could open the link using IE, but couldn’t using Firefox.

          • #1182151

            I took what he said to mean that he could open the link using IE, but couldn’t using Firefox.

            Let’s wait and see how Peter reacts…

    Viewing 1 reply thread
    Reply To: FollowHyperlink won't open web page.

    You can use BBCodes to format your content.
    Your account can't use all available BBCodes, they will be stripped before saving.

    Your information: