+ Reply to Thread
Results 1 to 4 of 4

Create hyperlink to Firefox search keyword?

  1. #1
    Registered User
    Join Date
    04-16-2012
    Location
    USA
    MS-Off Ver
    Excel 2003
    Posts
    2

    Unhappy Create hyperlink to Firefox search keyword?

    In FireFox, you can create a keyword that you can type into the address bar and have it search for you. For instance, I have a google search set to where I can type "g batman" into the address bar, and a google search for "batman" will come up.

    Now, I would like to create a hyperlink in Excel that uses cell data to search for the value in that cell...here's what I thought would work:

    =hyperlink("g" &E13, "Link")

    Cell E 13 has a search term - like "Birthday cake"

    I had hoped that this would open FireFox, and have "g Birthday cake" in the address bar, then proceed to "enter'" that as the URL and subsequently I'd get my google search.

    However, this doesn't happen as Excel doesn't know how to open that request (the "g" is throwing it off)

    How can I make it so where it actually puts "g Birthday cake" in the address bar and then searches that...

    Thank you for any ideas or help or tips.

    PS: I know I could do something like instead of having ''g'', put ''http://www.google.com/search?q='' and then it would add Cell E13's value at the end, and do a google search properly (http://www.google.com/search?q=Birthday cake) , but I need it to actually use "g Birthday cake" as the URL.


    TL;DR:
    Instead of =HYPERLINK("http://www.google.com") which opens www.google.com in the address bar in FireFox, I want it to open "r Birthday Cake" in the address bar of Firefox. Instead of opening, I get an error.

  2. #2
    Valued Forum Contributor AlvaroSiza's Avatar
    Join Date
    09-19-2007
    Location
    Staffordshire
    MS-Off Ver
    2007
    Posts
    591

    Re: Create hyperlink to Firefox search keyword?

    As far as I know, it will be difficult to call an instance of Firefox from within VBA as there is no MS compatible COM component. The commonly used 'CreateObject' will only create an instance of and provide a reference to registered COM servers (Thanks Tom Shreiner).
    Perhaps it was the Noid who should have avoided me...
    If you are satisfied with my solution click the small star icon on the left. Thanks
    1. Make a copy of your workbook and run the following code on your copy (just in case)
    2. With excel open, press ALT+F11 to open the Visual Basic Editor (VBE). From the "Insert" menu, select "Module".
    3. Paste the code from above into the empty white space. Close the VBE.
    4. From the developer tab, choose "Macros", select the Sub Name, and click "Run".

  3. #3
    Registered User
    Join Date
    04-16-2012
    Location
    USA
    MS-Off Ver
    Excel 2003
    Posts
    2

    Re: Create hyperlink to Firefox search keyword?

    Hm, okay.

    Should I repost this in the general Excel forum, or can it be moved so I don't cross-post?

    ...unless of course there's no way to do this in Excel at all.

  4. #4
    Valued Forum Contributor AlvaroSiza's Avatar
    Join Date
    09-19-2007
    Location
    Staffordshire
    MS-Off Ver
    2007
    Posts
    591

    Re: Create hyperlink to Firefox search keyword?


+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1