Closed Thread
Results 1 to 3 of 3

How to create a Web Hyperlink based on Cell Contents?

  1. #1
    Registered User
    Join Date
    10-15-2007
    Posts
    10

    Question How to create a Web Hyperlink based on Cell Contents?

    Hi all,

    I've tried searching the forums for an answer, but had no luck. Will try my luck posting...and maybe it'll also help someone else as well:

    -> In Excel Cell L4 to L9999, I would like to have Excel have that cell Hyperlinked of a Google search of the contents which were entered in that cell. (or, if that same cell can't be Hyperlinked, then a neighboring cell is OK)

    -> So, for example, if cell L4 contained the word: "testing",
    I would like to be able to click on that text in the cell to open a browser and take me to: "http://www.google.com/search?q=testing"

    ...I hope this can be done without writing a macro, (maybe by a formula instead?) BUT, if it's the only way of doing it, then yes, please, in that case, I would LOVE to know how to write/enter the macro.

    Thanks SO much for your help!!
    CG
    Last edited by chatguy; 10-15-2007 at 02:57 PM.

  2. #2
    Forum Contributor corinereyes's Avatar
    Join Date
    12-02-2003
    Location
    Philippines
    MS-Off Ver
    MS Excel 2016
    Posts
    520
    Hi chatguy

    You can try this code:

    Please Login or Register  to view this content.
    In sheet 2, enter the following:
    B2 = google search
    C2 = Test (or any word you wish)

    Save the workbook, when sheet2 is activated, the above code runs.

    Hope it helps you get started.
    Corine

  3. #3
    Forum Contributor VBA Noob's Avatar
    Join Date
    04-25-2006
    Location
    London, England
    MS-Off Ver
    xl03 & xl 07(Jan 09)
    Posts
    11,988
    Closed for cross posting on two other forums. Please read forum rules below and PM me if you agree to then

    VBA Noob
    Last edited by VBA Noob; 10-15-2007 at 04:31 PM.
    _________________________________________


    Credo Elvem ipsum etian vivere
    _________________________________________
    A message for cross posters

    Please remember to wrap code.

    Forum Rules

    Please add to your signature if you found this link helpful. Excel links !!!

Closed Thread

Thread Information

Users Browsing this Thread

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

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